Skip to content

Commit

Permalink
cutting trace size
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Nov 26, 2023
1 parent ae851cc commit 35587fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instld/cli/traceback_cutting/traceback_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def cut_base_of_traceback(traceback_object, base_size):
def cut_importlib_bug(traceback_object):
try:
while traceback_object is not None:
if not (traceback_object.tb_frame.f_code.co_qualname == '_call_with_frames_removed' and traceback_object.tb_frame.f_code.co_filename == '<frozen importlib._bootstrap>'):
if not (traceback_object.tb_frame.f_code.co_filename == '<frozen importlib._bootstrap>' or traceback_object.tb_frame.f_code.co_filename == '<frozen importlib._bootstrap_external>'):
return traceback_object
traceback_object = traceback_object.tb_next
except AttributeError:
Expand Down

0 comments on commit 35587fb

Please sign in to comment.