We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 242708e commit 2ce2c26Copy full SHA for 2ce2c26
Lib/idlelib/stackviewer.py
@@ -41,14 +41,14 @@ def get_stack(self, tb):
41
42
def get_exception(self):
43
if hasattr(sys, 'last_exc'):
44
- type = type(sys.last_exc)
+ typ = type(sys.last_exc)
45
value = sys.last_exc
46
else:
47
- type = sys.last_type
+ typ = sys.last_type
48
value = sys.last_value
49
- if hasattr(type, "__name__"):
50
- type = type.__name__
51
- s = str(type)
+ if hasattr(typ, "__name__"):
+ typ = typ.__name__
+ s = str(typ)
52
if value is not None:
53
s = s + ": " + str(value)
54
return s
0 commit comments