[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d35bf6ac8e
commit
c6d449550f
1 changed files with 3 additions and 6 deletions
|
|
@ -1355,15 +1355,12 @@ def detect_gguf_model_remote(
|
|||
"RevisionNotFoundError",
|
||||
"EntryNotFoundError",
|
||||
):
|
||||
logger.debug(
|
||||
f"Could not check GGUF files for '{repo_id}': {e}"
|
||||
)
|
||||
logger.debug(f"Could not check GGUF files for '{repo_id}': {e}")
|
||||
return None
|
||||
if attempt < 2:
|
||||
time.sleep(2 ** attempt)
|
||||
time.sleep(2**attempt)
|
||||
logger.warning(
|
||||
f"Could not check GGUF files for '{repo_id}' after 3 attempts: "
|
||||
f"{last_err}"
|
||||
f"Could not check GGUF files for '{repo_id}' after 3 attempts: " f"{last_err}"
|
||||
)
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue