mirror of https://github.com/Mikaela/Limnoria.git
Fix inspection of the stack if the 'self' object has no __dict__.
This commit is contained in:
parent
ee4690ea18
commit
84cad71cf5
|
@ -142,8 +142,9 @@ def collect_extra_debug_data():
|
||||||
frame_locals = frame.f_locals
|
frame_locals = frame.f_locals
|
||||||
for inspected in ('self', 'cls'):
|
for inspected in ('self', 'cls'):
|
||||||
if inspected in frame_locals:
|
if inspected in frame_locals:
|
||||||
for (key, value) in frame_locals[inspected].__dict__.items():
|
if frame_locals[inspected].__dict__:
|
||||||
frame_locals['%s.%s' % (inspected, key)] = value
|
for (key, value) in frame_locals[inspected].__dict__.items():
|
||||||
|
frame_locals['%s.%s' % (inspected, key)] = value
|
||||||
for key, value in frame_locals.items():
|
for key, value in frame_locals.items():
|
||||||
if key == '__builtins__':
|
if key == '__builtins__':
|
||||||
# This is flooding
|
# This is flooding
|
||||||
|
|
Loading…
Reference in New Issue