MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / MissingError

Class MissingError

example_code/item_088.py:70–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68print("Example 3")
69try:
70 class MissingError(Exception):
71 pass
72
73 try:
74 my_dict["does_not_exist"] # Raises first exception

Callers 1

item_088.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected