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]