Spaces:
Runtime error
Runtime error
Update roop/core.py
Browse files- roop/core.py +7 -3
roop/core.py
CHANGED
|
@@ -194,9 +194,13 @@ def start() -> None:
|
|
| 194 |
|
| 195 |
|
| 196 |
def destroy() -> None:
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
|
| 201 |
|
| 202 |
def run() -> None:
|
|
|
|
| 194 |
|
| 195 |
|
| 196 |
def destroy() -> None:
|
| 197 |
+
try:
|
| 198 |
+
if roop.globals.target_path:
|
| 199 |
+
clean_temp(roop.globals.target_path)
|
| 200 |
+
except Exception as e:
|
| 201 |
+
print(f"Error cleaning temp files: {e}")
|
| 202 |
+
# no quit() here
|
| 203 |
+
|
| 204 |
|
| 205 |
|
| 206 |
def run() -> None:
|