Skip to content

Commit

Permalink
fix: wrong exception
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Jun 10, 2024
1 parent 6f608a7 commit b840a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trove/util/iris.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b840a5d

Please sign in to comment.