mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
pygrub: More accurate try/except catch.
Signed-off-by: Michal Novotny <minovotn@redhat.com>
This commit is contained in:
1 parent
f32b5caf31
commit
6fe255bdc2
1 file changed
+1
-1
@@ -532,7 +532,7 @@ def run_grub(file, entry, fs, arg):
|
||||
|
||||
try:
|
||||
img = g.cf.images[sel]
|
||||
except:
|
||||
except IndexError:
|
||||
log.debug("PyGrub: Default selection is not valid, using first boot configuration...")
|
||||
img = g.cf.images[0]
|
||||
|
||||
|
||||