We're sorry - this page does not exist (yet).
If you think this is an error, please report an issue.
New chapters are coming out every week. To get notified when a new chapter (or this one) comes out, follow us on Mastodon.
import bookutils.setup
class NotFoundError(Exception):
def __init__(self, value: str = "404") -> None:
self.value = value
def __str__(self) -> str:
return repr(self.value)
from ExpectError import ExpectError
with ExpectError():
raise NotFoundError
Traceback (most recent call last): File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_98074/1830731544.py", line 4, in <cell line: 3> raise NotFoundError NotFoundError: '404' (expected)