Mercurial > hg > orthanc
diff OrthancServer/Sources/OrthancInitialization.cpp @ 5809:023a99146dd0 attach-custom-data
merged find-refactoring -> attach-custom-data
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 24 Sep 2024 12:53:43 +0200 |
parents | 8279eaab0d1d a8055aebc6cb |
children |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancInitialization.cpp Tue Sep 24 12:11:25 2024 +0200 +++ b/OrthancServer/Sources/OrthancInitialization.cpp Tue Sep 24 12:53:43 2024 +0200 @@ -261,7 +261,17 @@ { LOG(INFO) << " - " << tagName; } - DicomMap::AddMainDicomTag(tag, level); + + try + { + DicomMap::AddMainDicomTag(tag, level); + } + catch(OrthancException& e) + { + LOG(WARNING) << " - !!! " << tagName << " is already defined as a standard MainDicomTags, it is useless to include it in the ExtraMainDicomTags"; + } + + } } }