Skip to content

Commit addf32f

Browse files
committed
Create cache dir correctly
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 5e48cf2 commit addf32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python_inspector/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ def validate_index_url(cls, value):
5858
def create_cache_directory(cache_dir):
5959
cache_dir = Path(cache_dir).expanduser().resolve().absolute()
6060
if not cache_dir.exists():
61-
cache_dir.mkdir(exist_ok=True)
61+
cache_dir.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)