assistanttttttt commited on
Commit
f1d47d0
·
1 Parent(s): adee902

Fix SyntaxError: align finally with try

Browse files
core/pipelines/sd_image_pipeline.py CHANGED
@@ -232,3 +232,8 @@ class SdImagePipeline(BasePipeline):
232
 
233
  # The surrounding ``try``/``finally`` handles temp file cleanup.
234
  return final_results
 
 
 
 
 
 
232
 
233
  # The surrounding ``try``/``finally`` handles temp file cleanup.
234
  return final_results
235
+ finally:
236
+ for temp_file in temp_files_to_clean:
237
+ if temp_file and os.path.exists(temp_file):
238
+ os.remove(temp_file)
239
+ print(f"✅ Cleaned up temp file: {temp_file}")