I’m not sure if I’m doing something wrong or if this is by design, but I can’t get the Flask SDK to capture “normal” python errors.
What I mean by “normal” is - not ones originating from some Flask route being hit externally (those work fine), but original internally from the app itself.
Simplest example:
sentry_sdk.init(
dsn=os.environ.get("SENTRY_DSN"),
integrations=[FlaskIntegration()],
)
app = Flask(__name__)
raise Exception('im INVISIBLE!') #not seen
@app.route('/')
def hello():
raise Exception('sentry can see me!') #seen correctly
return "Hello World!"
if __name__ == '__main__':
app.run()
If this normal? If so, how do I capture both types?