]> andersk Git - jira-zephyrbot.git/commitdiff
Warn about failures to acquire the lock instead of exiting.
authorAnders Kaseorg <andersk@mit.edu>
Fri, 13 Feb 2009 08:59:20 +0000 (03:59 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Fri, 13 Feb 2009 08:59:20 +0000 (03:59 -0500)
jirabot.py

index c2fbf06df2b5c3d105dc34456307fedcd96f420d..1a7edcb81ae4d70d6dbd2704ea7aa13bb0063f75 100755 (executable)
@@ -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
This page took 0.074725 seconds and 5 git commands to generate.