Commit e162dbd2 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZMySQLDA: Do not try to close the connection if it has not been already opened.

parent a8e0e995
...@@ -292,7 +292,8 @@ class DB(TM): ...@@ -292,7 +292,8 @@ class DB(TM):
_p_oid=_p_changed=_registered=None _p_oid=_p_changed=_registered=None
def __del__(self): def __del__(self):
self.db.close() if self.db is not None:
self.db.close()
def _forceReconnection(self): def _forceReconnection(self):
db = self.db db = self.db
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment