Fix ruff linter (#137)

* Fix ruff linter

* Remove unused imports

* Remove unused imports
This commit is contained in:
Chenlei Hu
2024-02-09 01:35:20 +00:00
committed by GitHub
parent 66c22490c3
commit 6b3ad64388
18 changed files with 25 additions and 39 deletions

View File

@@ -29,8 +29,8 @@ def build_loaded(module, loader_name):
if os.path.exists(path):
os.remove(path)
exp += f'Forge has tried to move the corrupted file to {corrupted_backup_file} \n'
exp += f'You may try again now and Forge will download models again. \n'
raise ValueError(exp)
exp += 'You may try again now and Forge will download models again. \n'
raise ValueError(exp) from e
return result
setattr(module, loader_name, loader)