Skip to content

Commit

Permalink
Remove unused exception object
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Dec 4, 2024
1 parent c20fe58 commit af85eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/argus/notificationprofile/media/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,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

0 comments on commit af85eda

Please sign in to comment.