fix manager.py (#275)

Co-authored-by: jkhenning <>
This commit is contained in:
erezalg 2021-01-04 12:15:36 +02:00 committed by GitHub
parent 724006a334
commit c4158b55b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ class StorageManager(object):
cache_folder = Path(cache_path_encoding or cached_file).parent
archive_suffix = (cache_path_encoding or cached_file).name[:-len(suffix)]
name = encode_string_to_filename(name)
name = encode_string_to_filename(name) if name else name
if target_folder:
target_folder = Path(target_folder)
else: