eric6/DebugClients/Python/DebugBase.py

changeset 8257
28146736bbfc
parent 8240
93b8a353c4bf
child 8273
698ae46f40a4
--- a/eric6/DebugClients/Python/DebugBase.py	Tue Apr 20 19:38:10 2021 +0200
+++ b/eric6/DebugClients/Python/DebugBase.py	Tue Apr 20 19:47:39 2021 +0200
@@ -922,11 +922,11 @@
         if excval is None:
             excval = ''
         
-        if unhandled:
-            exctypetxt = "unhandled {0!s}".format(str(exctype))
-        else:
-            exctypetxt = str(exctype)
-        
+        exctypetxt = (
+            "unhandled {0!s}".format(str(exctype))
+            if unhandled else
+            str(exctype)
+        )
         excvaltxt = str(excval)
         
         # Don't step into libraries, which are used by our debugger methods

eric ide

mercurial