mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
fix
This commit is contained in:
parent
4d602fffd7
commit
6f55debc8a
@ -115,6 +115,8 @@ class ModelUpdater(ABC):
|
||||
path = self.get_path(info.filename)
|
||||
if not (p := path.parent).exists():
|
||||
p.mkdir(parents=True)
|
||||
if path.exists():
|
||||
path.unlink()
|
||||
tmp_path.rename(path)
|
||||
|
||||
def validate(self, path: Path, info: ModelInfo) -> Any: # noqa: ARG002
|
||||
|
||||
Loading…
Reference in New Issue
Block a user