Changeset 43 for mergebot


Ignore:
Timestamp:
Feb 23, 2010 3:29:43 PM (15 years ago)
Author:
retracile
Message:

Mergebot: retry save on exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mergebot/trunk/mergebot/mergebotdaemon.py

    r18 r43  
    365365            for key, value in task.results.items():
    366366                ticket[key] = value
    367             ticket.save_changes('mergebot', task.result_comment)
     367            try:
     368                ticket.save_changes('mergebot', task.result_comment)
     369            except:
     370                time.sleep(1) # attempt to avoid "pysqlite2.dbapi2.IntegrityError: columns ticket, time, field are not unique"
     371                ticket.save_changes('mergebot', task.result_comment)
    368372
    369373
Note: See TracChangeset for help on using the changeset viewer.