first_traceback#

first_traceback(keyword='During handling of the above exception')[source]#

Isolate the first error in the traceback that caused the issue.

Parameters:

keyword (str, optional) – Keyword string used to identify the cutoff point of the traceback, by default “During handling of the above exception”

Returns:

Isolated traceback string

Return type:

str