瀏覽代碼

[DATALAD] Recorded changes

Daniel Busch 3 月之前
父節點
當前提交
6c17a92ee0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/faostat_data_primap/download.py

+ 1 - 1
src/faostat_data_primap/download.py

@@ -120,7 +120,7 @@ def download_methodology(url_download: str, save_path: pathlib.Path) -> None:
         return
     # there is a file with that name and it's not a symlink
     # we need do delete and download again
-    elif download_path.exists() and download_path.is_symlink():
+    elif download_path.is_symlink():
         response = requests.get(url_download, stream=True, timeout=30)
         response.raise_for_status()
         # delete file