|
@ -48,6 +48,9 @@ class EEMysql(): |
|
|
.format(statement)) |
|
|
.format(statement)) |
|
|
|
|
|
|
|
|
cur.execute(statement) |
|
|
cur.execute(statement) |
|
|
|
|
|
cur.close() |
|
|
|
|
|
conn.close() |
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|
cur.close() |
|
|
cur.close() |
|
|
conn.close() |
|
|
conn.close() |
|
@ -57,8 +60,6 @@ class EEMysql(): |
|
|
else: |
|
|
else: |
|
|
Log.error(self, '{0}'.format(errormsg)) |
|
|
Log.error(self, '{0}'.format(errormsg)) |
|
|
|
|
|
|
|
|
cur.close() |
|
|
|
|
|
conn.close() |
|
|
|
|
|
|
|
|
|
|
|
# def __del__(self): |
|
|
# def __del__(self): |
|
|
# self.cur.close() |
|
|
# self.cur.close() |
|
|