Skip to content

Commit

Permalink
fix(BaseClient): prevent raising an error if None is passed to the lo…
Browse files Browse the repository at this point in the history
…g_dir
  • Loading branch information
SlowMo24 committed Feb 19, 2024
1 parent 6b85928 commit 33fcff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ohsome/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 33fcff2

Please sign in to comment.