Skip to content

Commit

Permalink
refactor(place emails): remove check for email submitter field
Browse files Browse the repository at this point in the history
  • Loading branch information
goldpbear committed Apr 18, 2018
1 parent 3478f66 commit 18db98f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sa_api_v2/views/base_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,9 +1242,7 @@ def trigger_emails(self, email_templates, obj):
recipient_email = self.request.DATA[email_field]
logger.debug('[EMAIL] recipient_email: ' + recipient_email)
except KeyError:
errors.append("No '%s' field found on the place. "
"Be sure to configure the 'notifications.submitter_"
"email_field' property if necessary." % (email_field,))
recipient_email = ""

logger.debug('[EMAIL] Got to email')

Expand Down

0 comments on commit 18db98f

Please sign in to comment.