diff --git a/xnat_ingest/session.py b/xnat_ingest/session.py index d736cec..2cf5906 100644 --- a/xnat_ingest/session.py +++ b/xnat_ingest/session.py @@ -271,7 +271,7 @@ def get_id(field): f"Multiple values for '{field}' tag found within scans in session: " f"{session_dicom_series}" ) - id_ = cls.id_escape_re("", id_) + id_ = cls.id_escape_re.sub("", id_) return id_ scans = []