Fix pylint error

This commit is contained in:
Benjamin Berman 2024-08-01 21:27:16 -07:00 committed by GitHub
parent d9ba795385
commit c6186bd97e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,7 +133,7 @@ def get_or_download(folder_name: str, filename: str, known_files: Optional[List[
try:
os.makedirs(this_model_directory, exist_ok=True)
os.symlink(path, destination_link)
except WindowsError:
except Exception:
try:
os.link(path, destination_link)
except Exception as exc_info: