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 c1b0a7b commit 2e1b156Copy full SHA for 2e1b156
src/dicomweb_client/uri.py
@@ -638,7 +638,7 @@ def _validate_uid(uid: str, permissive: bool) -> None:
638
if _REGEX_UID.fullmatch(uid) is None:
639
raise ValueError(f'UID {uid!r} must match regex {_REGEX_UID!r} in '
640
'conformance with the DICOM Standard.')
641
- elif permissive and _REGEX_PERMISSIVE_UID.fullmatch(uid) is None:
+ elif _REGEX_PERMISSIVE_UID.fullmatch(uid) is None:
642
raise ValueError(f'Permissive mode is enabled. UID {uid!r} must match '
643
f'regex {_REGEX_PERMISSIVE_UID!r}.')
644
0 commit comments