diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-31 11:17:51 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-31 11:17:51 +0100 |
commit | 6fe255bdc2edb6a26326f6532908ffebbf69336a (patch) | |
tree | 93adaef9840b211bdfdc472e1315f0f734330590 /tools/pygrub | |
parent | f32b5caf311e6fedc1a22048a04b3724939142d0 (diff) | |
download | xen-6fe255bdc2edb6a26326f6532908ffebbf69336a.tar.gz xen-6fe255bdc2edb6a26326f6532908ffebbf69336a.tar.bz2 xen-6fe255bdc2edb6a26326f6532908ffebbf69336a.zip |
pygrub: More accurate try/except catch.
Signed-off-by: Michal Novotny <minovotn@redhat.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r-- | tools/pygrub/src/pygrub | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index ba70832e62..561bc7efe9 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -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] |