Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed May 15, 2024
1 parent 23d2250 commit 99c8d57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions queue_services/account-mailer/src/account_mailer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
from account_mailer import config
from account_mailer.resources.worker import bp as worker_endpoint


setup_logging(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'logging.conf')) # important to do this first


def register_endpoints(app: Flask):
"""Register endpoints with the flask application."""
# Allow base route to match with, and without a trailing slash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def _get_admin_emails(username):
admin_emails = admin_user.contacts[0].contact.email
else:
admin_emails = admin_user.email
else:
raise ValueError('Admin user not found, cannot determine email address.')

return admin_emails, admin_name

Expand Down

0 comments on commit 99c8d57

Please sign in to comment.