[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
54adfdff53
commit
f501ab8fc8
1 changed files with 1 additions and 3 deletions
|
|
@ -208,9 +208,7 @@ def _resolve_local_gguf_child(repo_root: Path, gguf_filename: str) -> Path:
|
|||
or gguf_filename.startswith(("/", "\\"))
|
||||
or "\\" in gguf_filename
|
||||
):
|
||||
raise RuntimeError(
|
||||
"gguf_filename must be a relative file path inside repo_id."
|
||||
)
|
||||
raise RuntimeError("gguf_filename must be a relative file path inside repo_id.")
|
||||
rel = PurePosixPath(gguf_filename)
|
||||
if any(part in ("", ".", "..") for part in rel.parts):
|
||||
raise RuntimeError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue