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 55f2e68 commit ce9b9bdCopy full SHA for ce9b9bd
src/dicomweb_client/uri.py
@@ -629,6 +629,8 @@ def _validate_resource_identifiers_and_suffix(
629
630
def _validate_uid(uid: str, permissive: bool) -> None:
631
"""Validates a DICOM UID."""
632
+ if not isinstance(uid, str):
633
+ raise TypeError('DICOM UID must be a string.')
634
if not permissive:
635
if len(uid) > _MAX_UID_LENGTH:
636
raise ValueError('UID cannot have more than 64 chars. '
0 commit comments