mirror of
https://github.com/balkian/tsih.git
synced 2024-12-21 21:48:13 +00:00
minor bug fixes
This commit is contained in:
parent
4e0e95fbe7
commit
eaddd89e8c
@ -10,7 +10,7 @@ import tempfile
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
__version__ = '0.1.8'
|
__version__ = '0.1.9'
|
||||||
|
|
||||||
from collections import UserDict, namedtuple
|
from collections import UserDict, namedtuple
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ class History:
|
|||||||
self._close()
|
self._close()
|
||||||
|
|
||||||
def _close(self):
|
def _close(self):
|
||||||
if self._db is None:
|
if not hasattr(self, '_db') or self._db is None:
|
||||||
return
|
return
|
||||||
self.flush_cache()
|
self.flush_cache()
|
||||||
self._db.close()
|
self._db.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user