Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Print stacktrace without site-packages in debugger
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