diff --git a/lib/galaxy/tool_util/data/__init__.py b/lib/galaxy/tool_util/data/__init__.py index 5e2fdfb7908b..927841d9004c 100644 --- a/lib/galaxy/tool_util/data/__init__.py +++ b/lib/galaxy/tool_util/data/__init__.py @@ -250,6 +250,11 @@ def add_entries( self.add_entry( entry, allow_duplicates=allow_duplicates, persist=persist, entry_source=entry_source, **kwd ) + except MessageException as e: + if e.type == "warning": + log.warning(str(e)) + else: + log.error(str(e)) except Exception as e: log.error(str(e)) return self._loaded_content_version @@ -686,7 +691,8 @@ def _add_entry( self.data.append(fields) else: raise MessageException( - f"Attempted to add fields ({fields}) to data table '{self.name}', but this entry already exists and allow_duplicates is False." + f"Attempted to add fields ({fields}) to data table '{self.name}', but this entry already exists and allow_duplicates is False.", + type="warning", ) else: raise MessageException(