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 Jan 24, 2025
1 parent 55f6abd commit 9bd5510
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openlibrary/utils/sentry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
import re
from dataclasses import dataclass
from typing import Optional

import sentry_sdk
import web
Expand Down Expand Up @@ -88,7 +87,7 @@ def capture_exception_webpy(self):
scope.add_event_processor(add_web_ctx_to_event)
sentry_sdk.capture_exception()

def capture_exception(self, ex, extras: Optional[dict]=None):
def capture_exception(self, ex, extras: dict | None = None):
with sentry_sdk.push_scope() as scope:
if extras:
for key, value in extras.items():
Expand Down

0 comments on commit 9bd5510

Please sign in to comment.