Prechádzať zdrojové kódy

[DATALAD] Recorded changes

Daniel Busch 3 mesiacov pred
rodič
commit
6c17a92ee0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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
         return
     # there is a file with that name and it's not a symlink
     # there is a file with that name and it's not a symlink
     # we need do delete and download again
     # 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 = requests.get(url_download, stream=True, timeout=30)
         response.raise_for_status()
         response.raise_for_status()
         # delete file
         # delete file