Skip to content

Commit

Permalink
fix improper indenation of error case (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
KAllan357 authored Jul 9, 2018
1 parent b065548 commit 260dfc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tap_salesforce/salesforce/bulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def _bulk_query(self, catalog_entry, state):
LOGGER.info("Finished syncing batch %s. Removing batch from state.", completed_batch_id)
LOGGER.info("Batches to go: %d", len(state['bookmarks'][catalog_entry['tap_stream_id']]["BatchIDs"]))
singer.write_state(state)

raise TapSalesforceException(batch_status['stateMessage'])
else:
raise TapSalesforceException(batch_status['stateMessage'])
else:
for result in self.get_batch_results(job_id, batch_id, catalog_entry):
yield result
Expand Down

0 comments on commit 260dfc5

Please sign in to comment.