From 4a121f46fd9d87f907f314f7246784c277de1ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sun, 7 May 2006 14:52:20 +0000 Subject: [PATCH] * attempt to add traceback to database txn errors --- pisi/dbshelve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pisi/dbshelve.py b/pisi/dbshelve.py index 0dacfd94..a38867bd 100644 --- a/pisi/dbshelve.py +++ b/pisi/dbshelve.py @@ -39,7 +39,8 @@ import cPickle import bsddb3.db as db import bsddb3.dbobj as dbobj import string - +import sys +import traceback import pisi class CodingError(pisi.Error): @@ -83,6 +84,7 @@ class DBShelf: raise e except Exception, e: autotxn.abort() + #e.args += tuple(traceback.format_tb(sys.exc_traceback)) raise e autotxn.commit() else: # execute without transactions