From 4311bd26ba1ffc32fd5c7ba29c1e5479fd36ea25 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 13 Feb 2009 03:59:20 -0500 Subject: [PATCH] Warn about failures to acquire the lock instead of exiting. --- jirabot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.1