From ac36b06befed0636bc8f90776482714cff863f0c Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 10 Jul 2002 06:30:30 +0000 Subject: [PATCH] ...except of course it's nice to use valid Python syntax git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@857 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/backends/back_anydbm.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 681dfbd..4e1ee10 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -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.42 2002-07-10 06:21:38 richard Exp $ +#$Id: back_anydbm.py,v 1.43 2002-07-10 06:30:30 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 @@ -350,9 +350,9 @@ class Database(FileStorage, hyperdb.Database): try: journal = marshal.loads(db[nodeid]) except KeyError: - raise KeyError, 'no such %s %s'%(classname, nodeid) - finally: db.close() + raise KeyError, 'no such %s %s'%(classname, nodeid) + db.close() res = [] for entry in journal: (nodeid, date_stamp, user, action, params) = entry @@ -511,6 +511,9 @@ class Database(FileStorage, hyperdb.Database): # #$Log: not supported by cvs2svn $ +#Revision 1.42 2002/07/10 06:21:38 richard +#Be extra safe +# #Revision 1.41 2002/07/10 00:21:45 richard #explicit database closing # -- 2.30.2