Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 16, 2024
1 parent d378558 commit 35d91c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openlibrary/plugins/openlibrary/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -684,4 +686,3 @@ def GET(self):
raise ArbitraryException('Triggered on a whim')
except Exception as e:

Check failure on line 687 in openlibrary/plugins/openlibrary/api.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (BLE001)

openlibrary/plugins/openlibrary/api.py:687:16: BLE001 Do not catch blind exception: `Exception`
sentry.capture_exception(e)

0 comments on commit 35d91c3

Please sign in to comment.