Skip to content
Snippets Groups Projects
Commit 85894658 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

bugs fixed

parent dcbee33f
No related branches found
Tags v2.8.3
No related merge requests found
......@@ -221,6 +221,7 @@ class StackFrame(JSONAble):
sv.lineno = x['line_no'],
sv.locals = {k: StoredVariableValue.from_json(v) for k, v in x['locals'].items()}
sv.globals = {k: StoredVariableValue.from_json(v) for k, v in x['globals'].items()}
return sv
def to_json(self) -> dict:
return {
......@@ -299,7 +300,7 @@ class Traceback(JSONAble):
tb = Traceback.__new__(Traceback)
tb.frames = [StackFrame.from_json(y) for y in x['frames']]
tb.formatted_traceback = x['formatted_traceback']
return x
return tb
def pretty_format(self) -> str:
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment