diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-10-13 09:58:12 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-10-13 09:58:12 +0200 |
commit | 9f26ebfe7f174e8ec941ebb381a3e53a3c96db27 (patch) | |
tree | 67c8e57fa67542464605f825fc535127764f551e /src/hydrilla/proxy/state_impl | |
parent | dd996208ec17da962b258489c41e6b875bc36da3 (diff) | |
download | haketilo-hydrilla-9f26ebfe7f174e8ec941ebb381a3e53a3c96db27.tar.gz haketilo-hydrilla-9f26ebfe7f174e8ec941ebb381a3e53a3c96db27.zip |
[proxy] make sure ~/.haketilo/store/ exists before using it
Diffstat (limited to 'src/hydrilla/proxy/state_impl')
-rw-r--r-- | src/hydrilla/proxy/state_impl/concrete_state.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hydrilla/proxy/state_impl/concrete_state.py b/src/hydrilla/proxy/state_impl/concrete_state.py index d7998d6..d2d6e56 100644 --- a/src/hydrilla/proxy/state_impl/concrete_state.py +++ b/src/hydrilla/proxy/state_impl/concrete_state.py @@ -347,6 +347,8 @@ class ConcreteHaketiloState(base.HaketiloStateWithFields): @staticmethod def make(store_dir: Path) -> 'ConcreteHaketiloState': + store_dir.mkdir(parents=True, exist_ok=True) + connection = sqlite3.connect( str(store_dir / 'sqlite3.db'), isolation_level = None, |