PEP 678: fix typo in sample code (GH-2762)
This commit is contained in:
parent
39b78da33b
commit
46178be287
|
@ -247,7 +247,7 @@ exception chaining, and are unnecessary with ``BaseException.add_note()``:
|
|||
|
||||
class Explanation(Exception):
|
||||
def __str__(self):
|
||||
return "\n" + str(self)
|
||||
return "\n" + str(self.args[0])
|
||||
|
||||
try:
|
||||
raise AssertionError("Failed!")
|
||||
|
|
Loading…
Reference in New Issue