From 33fcff267d5f5d9ff2e6bd161d1dbc7976403244 Mon Sep 17 00:00:00 2001 From: Moritz Schott Date: Thu, 15 Feb 2024 22:59:52 +0100 Subject: [PATCH] fix(BaseClient): prevent raising an error if None is passed to the log_dir --- ohsome/clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohsome/clients.py b/ohsome/clients.py index 0751a33..588e337 100644 --- a/ohsome/clients.py +++ b/ohsome/clients.py @@ -55,7 +55,7 @@ def __init__( RetryError by the underlying library. """ self.log = log - self.log_dir = Path(log_dir) + self.log_dir = Path(log_dir or DEFAULT_LOG_DIR) if self.log: self.log_dir.mkdir(parents=True, exist_ok=True) if base_api_url is not None: