pip install raven python import raven client = raven.Client('<your-sentry-project-dsn>') python try: except Exception as e: client.captureException()