Skip to content

Commit 75bbee7

Browse files
committed
Fix FileNotFoundError in CLI update check (#3574)
* fix FileNotFoundError when checking cli update * typo
1 parent 52af0c0 commit 75bbee7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/huggingface_hub/cli/_cli_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def _check_cli_update() -> None:
144144
return
145145

146146
# Touch the file to mark that we did the check now
147+
Path(constants.CHECK_FOR_UPDATE_DONE_PATH).parent.mkdir(parents=True, exist_ok=True)
147148
Path(constants.CHECK_FOR_UPDATE_DONE_PATH).touch()
148149

149150
# Check latest version from PyPI

0 commit comments

Comments
 (0)