From 35d91c374775a10df53a41e649cb8d6ba345dd5e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:02:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- openlibrary/plugins/openlibrary/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -