diff --git a/openlibrary/plugins/openlibrary/api.py b/openlibrary/plugins/openlibrary/api.py index 46360fe44150..2ec5739b9dbb 100644 --- a/openlibrary/plugins/openlibrary/api.py +++ b/openlibrary/plugins/openlibrary/api.py @@ -670,8 +670,10 @@ def POST(self): json.dumps({'success': 'Preference saved'}), content_type="application/json" ) + from openlibrary.plugins.openlibrary.sentry import sentry + class ArbitraryException(Exception): pass @@ -684,4 +686,3 @@ def GET(self): raise ArbitraryException('Triggered on a whim') except Exception as e: sentry.capture_exception(e) -