summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-05 23:17:24 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-05 23:17:24 (GMT)
commite989bf587cd0e239de23846a22618613472a71ff (patch)
tree3e2a6b2332c7eb3e19936c6c1aa3ff40828fcb75 /Lib/pdb.py
parent37fdcbc4c38ed79f9abc319bdedb26982abccd93 (diff)
parentca3f435fe6b5de970848eb3a5d8f8e6cd5d2f73c (diff)
downloadcpython-e989bf587cd0e239de23846a22618613472a71ff.zip
cpython-e989bf587cd0e239de23846a22618613472a71ff.tar.gz
cpython-e989bf587cd0e239de23846a22618613472a71ff.tar.bz2
merge from 3.4
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index cf2edbf..4cba8a0 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -1669,6 +1669,9 @@ def main():
# In most cases SystemExit does not warrant a post-mortem session.
print("The program exited via sys.exit(). Exit status:", end=' ')
print(sys.exc_info()[1])
+ except SyntaxError:
+ traceback.print_exc()
+ sys.exit(1)
except:
traceback.print_exc()
print("Uncaught exception. Entering post mortem debugging")