Skip to content

Commit

Permalink
Manage error on insertion to offers table #76
Browse files Browse the repository at this point in the history
  • Loading branch information
badele committed Dec 1, 2013
1 parent 733d4d3 commit 27b7760
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jc/jobboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ def moveToOffers(self):
o = self.createOffer(d)
if o:
o.cleanFields()
utilities.db_add_offer(self.configs, o)
try:
utilities.db_add_offer(self.configs, o)
except Exception, e:
utilities.showMessage(
"%s for %s" % (e, d['url']),
"error",
self.name,
)
else:
utilities.showMessage(
"Error moving to offers of %s" % d['url'],
Expand Down

0 comments on commit 27b7760

Please sign in to comment.