Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Dec 4, 2024
1 parent 157ac24 commit 3131826
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/argus/notificationprofile/media/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def send_email_safely(function, additional_error=None, *args, **kwargs) -> int:
try:
result = function(*args, **kwargs)
return result
except ConnectionRefusedError as e:
except ConnectionRefusedError:
EMAIL_HOST = getattr(settings, "EMAIL_HOST", None)
if not EMAIL_HOST:
LOG.error("Notification: Email: EMAIL_HOST not set, cannot send")
Expand Down
3 changes: 0 additions & 3 deletions src/argus/notificationprofile/media/sms_as_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from django.conf import settings
from django.core.mail import send_mail
from phonenumber_field.formfields import PhoneNumberField
from rest_framework.exceptions import ValidationError

from ...incident.models import Event
from .base import NotificationMedium
Expand All @@ -23,10 +22,8 @@
from collections.abc import Iterable

from django.contrib.auth import get_user_model
from django.db.models.query import QuerySet

from ..models import DestinationConfig
from ..serializers import RequestDestinationConfigSerializer

User = get_user_model()

Expand Down

0 comments on commit 3131826

Please sign in to comment.