From 35587fbad63416c2cc1ea8f48cc07a462544c3d7 Mon Sep 17 00:00:00 2001 From: Evgeniy Blinov Date: Sun, 26 Nov 2023 23:30:38 +0300 Subject: [PATCH] cutting trace size --- instld/cli/traceback_cutting/traceback_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instld/cli/traceback_cutting/traceback_utils.py b/instld/cli/traceback_cutting/traceback_utils.py index 952eb5e..6128767 100644 --- a/instld/cli/traceback_cutting/traceback_utils.py +++ b/instld/cli/traceback_cutting/traceback_utils.py @@ -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 == ''): + if not (traceback_object.tb_frame.f_code.co_filename == '' or traceback_object.tb_frame.f_code.co_filename == ''): return traceback_object traceback_object = traceback_object.tb_next except AttributeError: