[thci] print traceback and re-raise exceptions (#7356)

THCI used to catch Exceptions and print errors using
`ModuleHelper.WriteIntoDebugLogger`. However, in most of time it just
help hide the actual issue and make it harder to debug.

Re-raising the exceptions should be a better approach:
- @API decorator will print the full exception Traceback via
  `ModuleHelper.WriteIntoDebugLogger` and then re-raise.
This commit is contained in:
Simon Lin
2022-01-28 08:14:59 -08:00
committed by GitHub
parent c2773c3d8d
commit 9e17e471ad
File diff suppressed because it is too large Load Diff