mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 15:35:45 +00:00
fix exception introduced by the last commit
This commit is contained in:
parent
3dfc0c2e1c
commit
d8ace87468
@ -80,9 +80,8 @@ def check_and_download(url: str, dst_file: Path, caching = False)->int:
|
|||||||
return 0
|
return 0
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
print(e, flush=True)
|
print(e, flush=True)
|
||||||
if dst_file.is_file():
|
if dst_file.is_file(): dst_file.unlink()
|
||||||
dst_file.unlink()
|
if url in download_cache: del download_cache[url]
|
||||||
del download_cache[url]
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
def mkdir_with_dot_tmp(folder: Path)->Tuple[Path, Path]:
|
def mkdir_with_dot_tmp(folder: Path)->Tuple[Path, Path]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user