Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 844:982a5abb01ea maint-0.4
[SF#571170] gdbm deadlock
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 10 Jul 2002 06:30:47 +0000 |
| parents | b6b0a92e0738 |
| children | 8adaf5d169da |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Mon Jul 08 06:51:02 2002 +0000 +++ b/roundup/backends/back_anydbm.py Wed Jul 10 06:30:47 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.37 2002-06-20 23:52:35 richard Exp $ +#$Id: back_anydbm.py,v 1.37.2.1 2002-07-10 06:30:47 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -338,7 +338,9 @@ try: journal = marshal.loads(db[nodeid]) except KeyError: + db.close() raise KeyError, 'no such %s %s'%(classname, nodeid) + db.close() res = [] for entry in journal: (nodeid, date_stamp, user, action, params) = entry @@ -486,6 +488,9 @@ # #$Log: not supported by cvs2svn $ +#Revision 1.37 2002/06/20 23:52:35 richard +#More informative error message +# #Revision 1.36 2002/06/19 03:07:19 richard #Moved the file storage commit into blobfiles where it belongs. #
