pygrub: More accurate try/except catch.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
This commit is contained in:
Keir Fraser committed 2009-03-31 11:17:51 +01:00
1 parent f32b5caf31
commit 6fe255bdc2
1 file changed
+1 -1
+1 -1
View File
@@ -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]
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.