diff -r 26a8b92aeabd -r 28146736bbfc eric6/DebugClients/Python/DebugBase.py --- 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