Skip to content

Commit 4f72cdd

Browse files
author
Richard Jones
committed
...except of course it's nice to use valid Python syntax
1 parent fdc1e89 commit 4f72cdd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roundup/backends/back_anydbm.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.42 2002-07-10 06:21:38 richard Exp $
18+
#$Id: back_anydbm.py,v 1.43 2002-07-10 06:30:30 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -350,9 +350,9 @@ def getjournal(self, classname, nodeid):
350350
try:
351351
journal = marshal.loads(db[nodeid])
352352
except KeyError:
353-
raise KeyError, 'no such %s %s'%(classname, nodeid)
354-
finally:
355353
db.close()
354+
raise KeyError, 'no such %s %s'%(classname, nodeid)
355+
db.close()
356356
res = []
357357
for entry in journal:
358358
(nodeid, date_stamp, user, action, params) = entry
@@ -511,6 +511,9 @@ def rollback(self):
511511

512512
#
513513
#$Log: not supported by cvs2svn $
514+
#Revision 1.42 2002/07/10 06:21:38 richard
515+
#Be extra safe
516+
#
514517
#Revision 1.41 2002/07/10 00:21:45 richard
515518
#explicit database closing
516519
#

0 commit comments

Comments
 (0)