MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / __get_exception_info

Method __get_exception_info

seleniumbase/fixtures/base_case.py:16347–16362  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16345 sb_config._last_page_source = self.__last_page_source
16346
16347 def __get_exception_info(self):
16348 exc_message = None
16349 if (
16350 hasattr(self, "_outcome")
16351 and getattr(self._outcome, "errors", None)
16352 ):
16353 try:
16354 exc_message = self._outcome.errors[-1][1][1]
16355 except Exception:
16356 exc_message = "(Unknown Exception)"
16357 else:
16358 try:
16359 exc_message = sys.last_value
16360 except Exception:
16361 exc_message = "(Unknown Exception)"
16362 return str(exc_message)
16363
16364 def __insert_test_result(self, state, err):
16365 from seleniumbase.core.testcase_manager import TestcaseDataPayload

Callers 1

__insert_test_resultMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected