Skip to content

Commit

Permalink
handle all errors while checking contract existance
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed May 24, 2016
1 parent 5afa61f commit 680c895
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openprocurement/contracting/api/databridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ def get_tender_contracts(self):
self.contracting_client.get_contract(contract['id'])
except ResourceNotFound:
logger.info('Sync contract {} of tender {}'.format(contract['id'], tender['id']))
except Exception, e:
logger.exception(e)
self.tenders_queue.put(tender_to_sync)
break
else:
logger.info('Contract exists {}'.format(contract['id']))
continue
Expand Down

0 comments on commit 680c895

Please sign in to comment.