From de94bee7b53849447dac9ea937e0be876f45107f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 20 Jan 2012 00:11:19 +0000 Subject: [PATCH] minor fix --- plugins/generic/connector.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/generic/connector.py b/plugins/generic/connector.py index 9839224ed..48cc71266 100644 --- a/plugins/generic/connector.py +++ b/plugins/generic/connector.py @@ -50,9 +50,13 @@ class Connector: return self.cursor def close(self): - self.cursor.close() - self.connector.close() - self.closed() + try: + self.cursor.close() + self.connector.close() + except Exception, msg: + logger.debug(msg) + finally: + self.closed() def checkFileDb(self): if not os.path.exists(self.db):