Skip to content
Snippets Groups Projects

F merge missing list datatype

Merged Florian Spreckelsen requested to merge f-merge-missing-list-datatype into dev
2 unresolved threads
Files
3
@@ -62,7 +62,6 @@ from caosdb.exceptions import (AmbiguousEntityError, AuthorizationError,
EntityDoesNotExistError, EntityError,
EntityHasNoDatatypeError, HTTPURITooLongError,
MismatchingEntitiesError, QueryNotUniqueError,
ServerConfigurationException,
TransactionError, UniqueNamesError,
UnqualifiedParentsError,
UnqualifiedPropertiesError)
@@ -1384,8 +1383,8 @@ def _parse_value(datatype, value):
except TypeError:
# deal with invalid XML: List of values without appropriate datatype
if isinstance(value, list):
raise ServerConfigurationException(
"The server sent an invalid XML: List valued properties must be announced by "
raise TypeError(
"Invalid datatype: List valued properties must be announced by "
"the datatype.\n" + f"Datatype: {datatype}\nvalue: {value}")
Loading