Apex-X commited on
Commit
206a592
·
verified ·
1 Parent(s): c00e78d

Update roop/core.py

Browse files
Files changed (1) hide show
  1. roop/core.py +7 -3
roop/core.py CHANGED
@@ -194,9 +194,13 @@ def start() -> None:
194
 
195
 
196
  def destroy() -> None:
197
- if roop.globals.target_path:
198
- clean_temp(roop.globals.target_path)
199
- quit()
 
 
 
 
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: