From ad7de04dc527f6e14b7f50f0e21c68a2698e3f25 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Tue, 18 Feb 2025 16:32:12 +0100 Subject: [PATCH] Handle exception if missing video (#1787) --- skyvern/webeye/browser_factory.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skyvern/webeye/browser_factory.py b/skyvern/webeye/browser_factory.py index 23561ae6..674351dd 100644 --- a/skyvern/webeye/browser_factory.py +++ b/skyvern/webeye/browser_factory.py @@ -485,6 +485,8 @@ class BrowserState: self.browser_artifacts.video_artifacts[index].video_path = await page.video.path() except asyncio.TimeoutError: LOG.info("Timeout to get the page video, skip the exception") + except Exception: + LOG.exception("Error while getting the page video", exc_info=True) return target_lenght = index + 1 @@ -496,6 +498,8 @@ class BrowserState: self.browser_artifacts.video_artifacts[index].video_path = await page.video.path() except asyncio.TimeoutError: LOG.info("Timeout to get the page video, skip the exception") + except Exception: + LOG.exception("Error while getting the page video", exc_info=True) return async def get_or_create_page(