ipfs-shipyard/py-ipfs-http-client

Move MatcherSpecInvalidError into `ipfshttpclient/exceptions.py`

ntninja opened this issue · 0 comments

class MatcherSpecInvalidError(TypeError):
def __init__(self, invalid_spec: ty.Any) -> None:
super().__init__(
f"Don't know how to create a {Matcher.__name__} from spec {invalid_spec!r}"
)

We currently expose all possible exceptions in the ipfshttpclient/exceptions.py module. Ideally this one should be moved there to and added into the existing exception hierarchy (inheriting from both some exception there and TypeError, I think).