diff --git a/src/caosdb/common/datatype.py b/src/caosdb/common/datatype.py index 3822c7497f9d2489344319edaf3c3aa64e8b2da6..03ff6d023ab0d3005c37d56c65353c1a1072518e 100644 --- a/src/caosdb/common/datatype.py +++ b/src/caosdb/common/datatype.py @@ -90,6 +90,7 @@ def is_reference(datatype): else: return True + def get_referenced_recordtype(datatype): """Return the record type of the referenced datatype. @@ -119,7 +120,8 @@ def get_referenced_recordtype(datatype): raise ValueError("list does not have a list datatype") if datatype == FILE: - raise ValueError("FILE references are not considered references with a record type") + raise ValueError( + "FILE references are not considered references with a record type") return datatype