summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rescue.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/rescue.py b/rescue.py
index a13a3b00b..dc7256128 100644
--- a/rescue.py
+++ b/rescue.py
@@ -156,8 +156,7 @@ def runRescue(instPath, mountroot, id):
# errors raise exceptions, while any runtime error will
# still result in a shell.
(exc, val) = sys.exc_info()[0:2]
- #if exc in (IndexError, ValueError, SyntaxError):
- if 1:
+ if exc in (IndexError, ValueError, SyntaxError):
raise exc, val, sys.exc_info()[2]
ButtonChoiceWindow(screen, _("Rescue"),