Skip to content

Commit

Permalink
Update error message on campaigns job timeout (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosimon authored Apr 13, 2021
1 parent 6a53124 commit 7b1327c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tap_mailchimp/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ def poll_email_activity(client, state, batch_id):
if data['status'] == 'finished':
return data
elif (time.time() - start_time) > MAX_RETRY_ELAPSED_TIME:
message = 'campaigns - export deadline exceeded ({} secs)'.format(
MAX_RETRY_ELAPSED_TIME)
message = 'Mailchimp campaigns export is still in progress after {} seconds. Will continue with this export on the next sync.'.format(MAX_RETRY_ELAPSED_TIME)
LOGGER.error(message)
raise Exception(message)

Expand Down

0 comments on commit 7b1327c

Please sign in to comment.