1
0
mirror of https://github.com/balkian/tsih.git synced 2024-12-21 13:48:11 +00:00

minor bug fixes

This commit is contained in:
J. Fernando Sánchez 2023-03-23 14:18:32 +01:00
parent 4e0e95fbe7
commit eaddd89e8c

View File

@ -10,7 +10,7 @@ import tempfile
logger = logging.getLogger(__name__)
__version__ = '0.1.8'
__version__ = '0.1.9'
from collections import UserDict, namedtuple
@ -138,7 +138,7 @@ class History:
self._close()
def _close(self):
if self._db is None:
if not hasattr(self, '_db') or self._db is None:
return
self.flush_cache()
self._db.close()