Created
August 23, 2020 22:21
-
-
Save januszm/e25cc9fd7a1ce97fa10e36720c7589e2 to your computer and use it in GitHub Desktop.
Print stacktrace without site-packages in debugger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import traceback; [line for line in traceback.format_stack() if not 'site-packages' in line] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment