Skip to content

Commit ce4ab58

Browse files
committed
1 parent 0c773ff commit ce4ab58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/autocomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def safe_eval(expr, namespace):
342342
try:
343343
obj = eval(expr, namespace)
344344
return obj
345-
except (NameError, AttributeError) as e:
345+
except (NameError, AttributeError, SyntaxError) as e:
346346
# If debugging safe_eval, raise this!
347347
# raise e
348348
return SafeEvalFailed

0 commit comments

Comments
 (0)