We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6a2f5 commit d2122e8Copy full SHA for d2122e8
1 file changed
sentience/browser.py
@@ -509,7 +509,7 @@ def close(self, output_path: str | Path | None = None) -> str | None:
509
logger.warning(f"Could not locate video file: {e}")
510
511
# Rename/move video if output_path is specified
512
- final_path = temp_video_path
+ final_path = str(temp_video_path) if temp_video_path else None
513
if temp_video_path and output_path and os.path.exists(temp_video_path):
514
try:
515
output_path = str(output_path)
@@ -522,7 +522,7 @@ def close(self, output_path: str | Path | None = None) -> str | None:
522
523
warnings.warn(f"Failed to rename video file: {e}")
524
# Return original path if rename fails
525
+ final_path = str(temp_video_path)
526
527
return final_path
528
0 commit comments