Display uncaught GeneratorExit and StopIteration exceptions.

Wed, 07 Jun 2017 21:38:57 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Wed, 07 Jun 2017 21:38:57 +0200
changeset 5757
9a4e28d0b3c4
parent 5755
83fe98028532
child 5758
e9af479d5c48

Display uncaught GeneratorExit and StopIteration exceptions.

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Tue Jun 06 19:52:41 2017 +0200
+++ b/DebugClients/Python/DebugBase.py	Wed Jun 07 21:38:57 2017 +0200
@@ -796,7 +796,9 @@
         """
         exctype, excval, exctb = excinfo
         
-        if exctype in [GeneratorExit, StopIteration, SystemExit]:
+        if ((exctype in [GeneratorExit, StopIteration] and
+                unhandled == False) or
+                exctype == SystemExit):
             # ignore these
             return
         

eric ide

mercurial