We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8df080 commit d8b7c5cCopy full SHA for d8b7c5c
1 file changed
scim2_models/reference.py
@@ -8,6 +8,7 @@
8
9
from pydantic import GetCoreSchemaHandler
10
from pydantic_core import Url
11
+from pydantic_core import ValidationError
12
from pydantic_core import core_schema
13
14
from .utils import UNION_TYPES
@@ -166,5 +167,5 @@ def _validate_uri(value: str) -> None:
166
167
return
168
try:
169
Url(value)
- except Exception as e:
170
+ except ValidationError as e:
171
raise ValueError(f"Invalid URI: {value}") from e
0 commit comments