We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce14fe5 + 237c512 commit c83808aCopy full SHA for c83808a
lib/galaxy/files/sources/huggingface.py
@@ -104,7 +104,7 @@ def _to_filesystem_path(self, path: str) -> str:
104
105
def _extract_timestamp(self, info: dict) -> Optional[str]:
106
"""Extract timestamp from Hugging Face file info to use it in the RemoteFile entry."""
107
- last_commit: dict = info.get("last_commit", {})
+ last_commit: dict = info.get("last_commit") or {}
108
return last_commit.get("date")
109
110
def _get_file_hashes(self, info: dict) -> Optional[list[RemoteFileHash]]:
0 commit comments