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:
parent
4e0e95fbe7
commit
eaddd89e8c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user