retry_event: Remove requirement of failed_tries being already there.

This fixes a bug where retries in the signups queue threw an exception.
This commit is contained in:
Tim Abbott
2017-10-27 18:14:13 -07:00
parent 8b6b4e043f
commit fa55d7ed33
5 changed files with 4 additions and 10 deletions

View File

@@ -522,9 +522,6 @@ def handle_push_notification(user_profile_id, missed_message):
apns_payload,
gcm_payload)
except requests.ConnectionError:
if 'failed_tries' not in missed_message:
missed_message['failed_tries'] = 0
def failure_processor(event):
# type: (Dict[str, Any]) -> None
logging.warning(