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: