Skip to content

Commit 2bcdf79

Browse files
author
SentienceDev
committed
fix tests
1 parent f330c09 commit 2bcdf79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentience/browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)