[BUG] etype
was dropped from traceback.format_exception_only
in python 3.10+
#117
Labels
etype
was dropped from traceback.format_exception_only
in python 3.10+
#117
We recently discovered that the named parameter
etype
oftraceback.format_exception_only
was dropped in python 3.10+. Currently we use theetype
parameter in two places:If either of these code paths are hit when one is using python 3.10+, then an exception like the following gets raised
This is extra problematic as the only way to work around the issue is to fix whatever is wrong with your config that is trying to raise a validation issue, but this exception ends up swallowing up the initial discovered problem 🙃
Solution
We could continue passing the type of the exception, as it's still accepted as a positional argument wherein it just has to be an unnamed argument and the first in the function call. However as of python 3.5, the exception type began being inferred from the passed in exception value. Since we only support python 3.8+, it seems like the best path forward would be to just drop the
etype
in the two linked calls.The text was updated successfully, but these errors were encountered: