From b840a5d3908d40b666386597b26ce72e7121195f Mon Sep 17 00:00:00 2001 From: abram axel booth Date: Mon, 10 Jun 2024 10:07:09 -0400 Subject: [PATCH] fix: wrong exception --- trove/util/iris.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trove/util/iris.py b/trove/util/iris.py index 5295e8ea3..2b266e6c8 100644 --- a/trove/util/iris.py +++ b/trove/util/iris.py @@ -53,7 +53,7 @@ def get_sufficiently_unique_iri_and_scheme(iri: str) -> tuple[str, str]: return (iri, _scheme) else: # may omit scheme only if `://` if not iri.startswith(COLON_SLASH_SLASH): - raise trove_exceptions.InvalidIri(f'does not look like an iri (got "{iri}")') + raise trove_exceptions.IriInvalid(f'does not look like an iri (got "{iri}")') _scheme = '' _remainder = iri # for an iri with '://', is "safe enough" to normalize a little: