Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle an Exception without a traceback.
When an exception does not have a traceback there are no frames to filter, but there's an explicit check for the last frame which will fail if there are no frames. An example exception with this problem can be seen when using concurrent.futures.ProcessPoolExecutor. When it reconstitutes a remote exception it has serialized the traceback to a string it includes as the error message instead of an object that can be inspected.
- Loading branch information