From: Anders Kaseorg Date: Fri, 13 Feb 2009 08:59:20 +0000 (-0500) Subject: Warn about failures to acquire the lock instead of exiting. X-Git-Url: http://andersk.mit.edu/gitweb/jira-zephyrbot.git/commitdiff_plain/4311bd26ba1ffc32fd5c7ba29c1e5479fd36ea25 Warn about failures to acquire the lock instead of exiting. --- diff --git a/jirabot.py b/jirabot.py index c2fbf06..1a7edcb 100755 --- a/jirabot.py +++ b/jirabot.py @@ -118,7 +118,9 @@ while True: try: os.rename(time_file, time_file_new) except OSError: - exit() + print "warning: could not acquire timestamp lock" + time.sleep(17) + continue old_time = int(open(time_file_new).read()) new_time = old_time