|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] pygrub: More accurate try/except catch.
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238494671 -3600
# Node ID 0f53202cb1320659134bbf3d2b06882b06f3ad65
# Parent 6c316510ce73c2b96eb8b9ab2ccc6832a6b9d7fb
pygrub: More accurate try/except catch.
Signed-off-by: Michal Novotny <minovotn@xxxxxxxxxx>
---
tools/pygrub/src/pygrub | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 6c316510ce73 -r 0f53202cb132 tools/pygrub/src/pygrub
--- a/tools/pygrub/src/pygrub Tue Mar 31 11:16:01 2009 +0100
+++ b/tools/pygrub/src/pygrub Tue Mar 31 11:17:51 2009 +0100
@@ -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]
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] pygrub: More accurate try/except catch.,
Xen patchbot-unstable <=
|
|
|
|
|