Skip to content

Commit f1bc0b8

Browse files
committed
Update error-handling for "save_teardown_screenshot()"
1 parent ab94569 commit f1bc0b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7715,6 +7715,10 @@ def save_teardown_screenshot(self):
77157715
will still be taken after the last step of your tearDown(), where
77167716
you should be calling "super(SubClassOfBaseCase, self).tearDown()"
77177717
"""
7718+
try:
7719+
self.__check_scope()
7720+
except Exception:
7721+
return
77187722
if self.__has_exception() or self.save_screenshot_after_test:
77197723
test_id = self.__get_test_id()
77207724
test_logpath = self.log_path + "/" + test_id

0 commit comments

Comments
 (0)