(self)
| 46 | self.cursor = self.connector.cursor() |
| 47 | |
| 48 | def close(self): |
| 49 | try: |
| 50 | if self.cursor: |
| 51 | self.cursor.close() |
| 52 | if self.connector: |
| 53 | self.connector.close() |
| 54 | except Exception as ex: |
| 55 | logger.debug(ex) |
| 56 | finally: |
| 57 | self.closed() |
| 58 | |
| 59 | def checkFileDb(self): |
| 60 | if not os.path.exists(self.db): |