Skip to content

Commit

Permalink
Use index to grab first item
Browse files Browse the repository at this point in the history
  • Loading branch information
say-yawn committed Aug 5, 2021
1 parent 2dc05d3 commit 7742448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emails/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def histogram_if_enabled(name, value, tags=None):


def get_email_domain_from_settings():
if settings.TEST_MOZMAIL:
return settings.ADDITIONAL_DOMAINS.first()
if settings.TEST_MOZMAIL and settings.ADDITIONAL_DOMAINS:
return settings.ADDITIONAL_DOMAINS[0]
email_network_locality = urlparse(settings.SITE_ORIGIN).netloc
# on Heroku we need to add "mail" prefix
# because we can’t publish MX records on Heroku
Expand Down

0 comments on commit 7742448

Please sign in to comment.