Replies: 2 comments
-
Maybe a more realistic example helps: def get_something():
something = Model.objects.filter(this='that').first() # returns None or Model but never raises exceptions
if not something:
capture_exception(Model.DoesNotExist())
return something I can do something like: try:
raise Model.DoesNotExist
except:
capture_exception() but it's too much code for such a simple action... |
Beta Was this translation helpful? Give feedback.
0 replies
-
@GarrisonD if you manually instantiate exceptions this way, they don't have the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After executing this code I have tracebacks in Sentry:
But after executing this, I don't:
Here is what the docs say:
Beta Was this translation helpful? Give feedback.
All reactions