From 9f26ebfe7f174e8ec941ebb381a3e53a3c96db27 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 13 Oct 2022 09:58:12 +0200 Subject: [proxy] make sure ~/.haketilo/store/ exists before using it --- src/hydrilla/proxy/state_impl/concrete_state.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/hydrilla') 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, -- cgit v1.2.3