ia64/xen-unstable

changeset 19440:0f53202cb132

pygrub: More accurate try/except catch.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 31 11:17:51 2009 +0100 (2009-03-31)
parents 6c316510ce73
children fa8dc6e43ec8
files tools/pygrub/src/pygrub
line diff
     1.1 --- a/tools/pygrub/src/pygrub	Tue Mar 31 11:16:01 2009 +0100
     1.2 +++ b/tools/pygrub/src/pygrub	Tue Mar 31 11:17:51 2009 +0100
     1.3 @@ -532,7 +532,7 @@ def run_grub(file, entry, fs, arg):
     1.4  
     1.5      try:
     1.6          img = g.cf.images[sel]
     1.7 -    except:
     1.8 +    except IndexError:
     1.9          log.debug("PyGrub: Default selection is not valid, using first boot configuration...")
    1.10          img = g.cf.images[0]
    1.11