diff --git a/quota_notifier/notify.py b/quota_notifier/notify.py index d2f39ca..a1bf30a 100644 --- a/quota_notifier/notify.py +++ b/quota_notifier/notify.py @@ -81,8 +81,8 @@ def send(self, address: str, smtp: Optional[SMTP] = None) -> EmailMessage: return email with smtp or SMTP( - host=ApplicationSettings.get('smtp_host'), - port=ApplicationSettings.get('smtp_port') + host=ApplicationSettings.get('smtp_host'), + port=ApplicationSettings.get('smtp_port') ) as smtp_server: smtp_server.send_message(email) diff --git a/quota_notifier/settings.py b/quota_notifier/settings.py index ffbcc5f..5b7f69b 100644 --- a/quota_notifier/settings.py +++ b/quota_notifier/settings.py @@ -7,6 +7,7 @@ Module Contents --------------- """ + import logging from pathlib import Path from tempfile import NamedTemporaryFile