mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
remove send2trash
This commit is contained in:
parent
1d8b7e2bcf
commit
0cd7cdb52e
@ -2,7 +2,6 @@ from pathlib import Path
|
|||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from PIL.Image import Image as PILImageType
|
from PIL.Image import Image as PILImageType
|
||||||
from send2trash import send2trash
|
|
||||||
|
|
||||||
from invokeai.app.services.invoker import Invoker
|
from invokeai.app.services.invoker import Invoker
|
||||||
from invokeai.app.services.style_preset_images.style_preset_images_base import StylePresetImageFileStorageBase
|
from invokeai.app.services.style_preset_images.style_preset_images_base import StylePresetImageFileStorageBase
|
||||||
@ -70,7 +69,7 @@ class StylePresetImageFileStorageDisk(StylePresetImageFileStorageBase):
|
|||||||
if not self._validate_path(path):
|
if not self._validate_path(path):
|
||||||
raise StylePresetImageFileNotFoundException
|
raise StylePresetImageFileNotFoundException
|
||||||
|
|
||||||
send2trash(path)
|
path.unlink()
|
||||||
|
|
||||||
except StylePresetImageFileNotFoundException as e:
|
except StylePresetImageFileNotFoundException as e:
|
||||||
raise StylePresetImageFileNotFoundException from e
|
raise StylePresetImageFileNotFoundException from e
|
||||||
|
Loading…
Reference in New Issue
Block a user