Skip to content

Commit 160b47c

Browse files
Add sone note near _cumpute_suggestion_error
1 parent cb3c3d3 commit 160b47c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/traceback.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,11 @@ def _check_for_nested_attribute(obj, wrong_name, attrs):
17201720
return None
17211721

17221722

1723+
# add "exception_target=None"
1724+
# then we can handle the exception raised from suggestion
1725+
# use function "_add_exception_note"
1726+
# it won't add in gh-135660
1727+
17231728
def _compute_suggestion_error(exc_value, tb, wrong_name):
17241729
if wrong_name is None or not isinstance(wrong_name, str):
17251730
return None

0 commit comments

Comments
 (0)