Skip to content

Commit 906310b

Browse files
Update traceback.py
1 parent 66586db commit 906310b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/traceback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,7 @@ def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None,
11071107
suggestion = _compute_suggestion_error(exc_value, exc_traceback, wrong_name)
11081108
if suggestion:
11091109
self._str += f". Did you mean: '{suggestion}'?"
1110-
elif exc_type and issubclass(exc_type, ModuleNotFoundError) and \
1111-
getattr(exc_value, "name", None):
1110+
elif exc_type and issubclass(exc_type, ModuleNotFoundError) and getattr(exc_value, "name", None):
11121111
wrong_name = getattr(exc_value, "name", None)
11131112
suggestion = _compute_suggestion_error(exc_value, exc_traceback, wrong_name)
11141113
self._str = exc_value.msg

0 commit comments

Comments
 (0)