mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 19:21:21 +00:00
revise hints
This commit is contained in:
@@ -120,7 +120,8 @@ class ForgeSpace:
|
|||||||
def uninstall(self):
|
def uninstall(self):
|
||||||
def on_rm_error(func, path, exc_info):
|
def on_rm_error(func, path, exc_info):
|
||||||
print(f"Error deleting {path}. Error: {exc_info[1]}")
|
print(f"Error deleting {path}. Error: {exc_info[1]}")
|
||||||
|
print(f'Something went wrong when trying to delete a folder. You may try to manually delete the folder [{self.hf_path}].')
|
||||||
|
|
||||||
shutil.rmtree(self.hf_path, onerror=on_rm_error)
|
shutil.rmtree(self.hf_path, onerror=on_rm_error)
|
||||||
print(f'Deleted: {self.hf_path}')
|
print(f'Deleted: {self.hf_path}')
|
||||||
return self.refresh_gradio()
|
return self.refresh_gradio()
|
||||||
|
|||||||
Reference in New Issue
Block a user