summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/code.py b/Lib/code.py
index 3cd33dee48..846cd04642 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -70,7 +70,7 @@ class InteractiveInterpreter:
"""
try:
code = compile_command(source, filename, symbol)
- except (OverflowError, SyntaxError):
+ except (OverflowError, SyntaxError, ValueError):
# Case 1
self.showsyntaxerror(filename)
return 0