aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-13 09:58:12 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-13 09:58:12 +0200
commit9f26ebfe7f174e8ec941ebb381a3e53a3c96db27 (patch)
tree67c8e57fa67542464605f825fc535127764f551e /src/hydrilla
parentdd996208ec17da962b258489c41e6b875bc36da3 (diff)
downloadhaketilo-hydrilla-9f26ebfe7f174e8ec941ebb381a3e53a3c96db27.tar.gz
haketilo-hydrilla-9f26ebfe7f174e8ec941ebb381a3e53a3c96db27.zip
[proxy] make sure ~/.haketilo/store/ exists before using it
Diffstat (limited to 'src/hydrilla')
-rw-r--r--src/hydrilla/proxy/state_impl/concrete_state.py2
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,