From b19a2bb0515ce68d0dd8fa528f2c1ffb5f34254e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 16 Sep 2004 19:23:58 +0000 Subject: [PATCH] Information gathering. --- plugins/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/__init__.py b/plugins/__init__.py index 04fc8d3f3..17987c68c 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -79,6 +79,15 @@ try: return else: Connection.commit(self, *args, **kwargs) + + def __del__(self): + try: + Connection.__del__(self) + except Exception, e: + try: + log.exception('Uncaught exception in __del__:') + except: + pass sqlite.Connection = MyConnection #del Connection.__del__ except ImportError: