Rename bad-exception-context
to bad-exception-cause
#3694
Labels
Enhancement ✨
Improvement to a component
Good first issue
Friendly and approachable by new contributors
Help wanted 🙏
Outside help would be appreciated, good for new contributors
Milestone
While working on #3687 , I noticed bad naming. The
bad-exception-context
rule needs to be renamed tobad-exception-cause
, because it's about the cause and not the context.Note that the only way that the part after
from
could be related to the__context__
of the exception, is if it'sNone
, but:None
.None
, the__context__
is still the same, it's just the__suppress_context__
attribute that gets set toTrue
.We should also rename the
_check_bad_exception_context
method accordingly, and its docstring.The text was updated successfully, but these errors were encountered: