Skip to content

Commit

Permalink
Update type hinting for utils.send_sentry_message
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanson8 committed Jun 5, 2024
1 parent 9cba4f0 commit 50172d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion harvester/utils.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
"""utils.py module."""

from typing import Literal

import sentry_sdk


def send_sentry_message(
message: str,
scopes: dict | None = None,
level: str = "warning",
level: Literal["fatal", "critical", "error", "warning", "info", "debug"] = "warning",
) -> str | None:
"""Send message directly to Sentry.
Expand Down

0 comments on commit 50172d9

Please sign in to comment.