File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ def close(self, output_path: str | Path | None = None) -> str | None:
509509 logger .warning (f"Could not locate video file: { e } " )
510510
511511 # Rename/move video if output_path is specified
512- final_path = temp_video_path
512+ final_path = str ( temp_video_path ) if temp_video_path else None
513513 if temp_video_path and output_path and os .path .exists (temp_video_path ):
514514 try :
515515 output_path = str (output_path )
@@ -522,7 +522,7 @@ def close(self, output_path: str | Path | None = None) -> str | None:
522522
523523 warnings .warn (f"Failed to rename video file: { e } " )
524524 # Return original path if rename fails
525- final_path = temp_video_path
525+ final_path = str ( temp_video_path )
526526
527527 return final_path
528528
You can’t perform that action at this time.
0 commit comments