Skip to content

Commit

Permalink
use get to access dict
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mccoy committed Sep 13, 2019
1 parent 71f755a commit 56dfb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_mailchimp/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,6 @@ def sync(client, catalog, state, start_date):
should_stream, should_persist = should_sync_stream(streams_to_sync,
[],
'reports_email_activity')
campaign_ids = id_bag['campaigns']
campaign_ids = id_bag.get('campaigns')
if should_stream and campaign_ids:
sync_email_activity(client, catalog, state, start_date, campaign_ids)

0 comments on commit 56dfb08

Please sign in to comment.