Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

unpack result._traceback without assuming its size #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion prettytensor/pretty_tensor_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,8 @@ def _strip_unnecessary_contents_from_stack(result, processed):
processed.add(result)
trace = []
found = False
for f, line_no, method, _ in result._traceback:
for trace_content in result._traceback:
f, line_no, method = trace_content[0:3]
if (method in ('_replace_deferred', '_construct') and
f.endswith('pretty_tensor_class.py')):
found = True
Expand Down