Close a DB connection.
(self)
| 3246 | self.conn.commit() |
| 3247 | |
| 3248 | def close(self): |
| 3249 | """Close a DB connection.""" |
| 3250 | |
| 3251 | if self.conn is not None: |
| 3252 | try: |
| 3253 | self.cur.close() |
| 3254 | self.conn.close() |
| 3255 | except Exception: |
| 3256 | # ignore errors here, we're closing down |
| 3257 | pass |
| 3258 | |
| 3259 | def close_quit(self, exitval=0): |
| 3260 | """Close a DB connection and exit. |
no outgoing calls