[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r18176: {weather} If we can't get a lock on the database, we should quit. (weather/trunk)



Author: ioerror
Date: 2009-01-18 23:59:06 -0500 (Sun, 18 Jan 2009)
New Revision: 18176

Modified:
   weather/trunk/weather.py
Log:
If we can't get a lock on the database, we should quit.


Modified: weather/trunk/weather.py
===================================================================
--- weather/trunk/weather.py	2009-01-19 04:50:23 UTC (rev 18175)
+++ weather/trunk/weather.py	2009-01-19 04:59:06 UTC (rev 18176)
@@ -60,6 +60,7 @@
 
   except:
     print "Unable to get lock on database"
+    exit()
 
 # these may or may not be better than storing pickles with gdbm