Here `PublicKeyError`  inherits `ResourceNotFoundError` but `PublicKeyError(ResourceNotFoundError.__init__` is not called!