Skip to content

Commit

Permalink
Minor tweak in notification. (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Jul 7, 2022
1 parent f694ae7 commit 8f2e9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/payment-jobs/tasks/statement_notification_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def send_email(cls, token, recipients: str,
current_app.logger.info('send_email notify_response')
if notify_response:
response_json = json.loads(notify_response.text)
if response_json['notifyStatus']['code'] != 'FAILURE':
if response_json.get('notifyStatus', 'FAILURE') != 'FAILURE':
return True

return False

0 comments on commit 8f2e9b3

Please sign in to comment.