[error] also exclude frames starting with '<frozen'

This commit is contained in:
Jan Petykiewicz 2025-10-30 01:22:46 -07:00
parent 3e88ed9438
commit ebd1fbdfbf

View File

@ -52,7 +52,7 @@ def format_stacktrace(
stacklevel: int = 1,
*,
skip_file_prefixes: tuple[str, ...] = (MASQUE_DIR,),
low_file_prefixes: tuple[str, ...] = ('<runpy', '<string>'),
low_file_prefixes: tuple[str, ...] = ('<frozen', '<runpy', '<string>'),
low_file_suffixes: tuple[str, ...] = ('IPython/utils/py3compat.py', ),
) -> str:
"""