Skip to content

Commit

Permalink
build(deps): update libs (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugena committed Nov 5, 2024
1 parent 82c5ec7 commit 9bb1cf4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions acesta/user/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from django.conf import settings
from sentry_sdk import capture_message
from django.core.mail import mail_admins

from acesta.user.forms import OrderForm
from acesta.user.forms import RequestForm
Expand Down Expand Up @@ -74,12 +74,10 @@ def fetch_pdf_resources(uri: str, rel: str) -> str:
return path


def send_message(message) -> str:
def send_message(message) -> None:
"""
Captures a message
:return: str An `event_id` if the SDK decided to send the event
"""
if not settings.TESTING:
return capture_message(message)
else:
return ""
return mail_admins(message, message)

0 comments on commit 9bb1cf4

Please sign in to comment.