Skip to content
Snippets Groups Projects
Commit 482839d1 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

ENH: another constructive error message

parent 1cd07b07
No related branches found
No related tags found
2 merge requests!198REL: Release 0.10.0,!182Better error message
Pipeline #55116 passed
......@@ -268,6 +268,9 @@ def create_records(values: GeneralStore, records: RecordStore, def_records: dict
c_record = records[name]
if isinstance(record, str):
raise RuntimeError(
"dict expected, but found str: {}".format(record))
for key, value in record.items():
if key == "parents" or key == "role":
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment