(error)
| 18 | |
| 19 | |
| 20 | def _format_error(error): |
| 21 | if isinstance(error, BaseException): |
| 22 | text = "".join(traceback.format_exception_only(type(error), error)).strip() |
| 23 | if text: |
| 24 | return text |
| 25 | return str(error) |
| 26 | |
| 27 | |
| 28 | pending_tool = {} |
no test coverage detected