mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-26 19:09:45 +00:00
revise space
This commit is contained in:
@@ -118,7 +118,10 @@ class ForgeSpace:
|
||||
return self.refresh_gradio()
|
||||
|
||||
def uninstall(self):
|
||||
shutil.rmtree(self.hf_path)
|
||||
def on_rm_error(func, path, exc_info):
|
||||
print(f"Error deleting {path}. Error: {exc_info[1]}")
|
||||
|
||||
shutil.rmtree(self.hf_path, onerror=on_rm_error)
|
||||
print(f'Deleted: {self.hf_path}')
|
||||
return self.refresh_gradio()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user