Skip to content

Commit

Permalink
Merge pull request #12 from heathersherry/patch-1
Browse files Browse the repository at this point in the history
Update taggerfactory.py
  • Loading branch information
wetneb committed Dec 3, 2019
2 parents 47849d6 + d711b6e commit e5c47ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opentapioca/taggerfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def _push_documents(self, docs, collection, commit=False):
r = requests.post(self._collection_update_endpoint(collection),
params={'commit': 'true' if commit else 'false'},
data=json.dumps(payload), headers={'Content-Type':'application/json'})
r.raise_for_status()
try:
r.raise_for_status()
except requests.exceptions.RequestException as e:
logger.warning('Skipping batch: {}'.format(e))



0 comments on commit e5c47ba

Please sign in to comment.