From 2ecfdc214be52a4ce001db88a7184e866ee910e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 10 Oct 2006 10:43:19 +0000 Subject: [PATCH] don't repeat yourself and give the bsddb exception an identity. --- pisi/dbshelve.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pisi/dbshelve.py b/pisi/dbshelve.py index c9068c7c..4ee33571 100644 --- a/pisi/dbshelve.py +++ b/pisi/dbshelve.py @@ -80,11 +80,7 @@ class DBShelf: retval = proc(autotxn) except db.DBError, e: autotxn.abort() - raise e - except Exception, e: - autotxn.abort() - #e.args += tuple(traceback.format_tb(sys.exc_traceback)) - raise e + raise pisi.Error, e autotxn.commit() else: # execute without transactions retval = proc(None)