Skip to content
Snippets Groups Projects
Commit 54bf5162 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-fix-small-bug' into 'dev'

F fix small bug

See merge request caosdb/src/crawler2.0!12
parents 1b4dc945 c3425243
Branches
Tags
2 merge requests!53Release 0.1,!12F fix small bug
......@@ -536,9 +536,9 @@ class DictListElementConverter(Converter):
children = []
for index, list_element in enumerate(element.value):
# TODO(fspreck): Refactor this and merge with DictXXXElements maybe?
if type(list_element) == str:
if isinstance(list_element, str):
children.append(TextElement(str(index), list_element))
if type(list_element) == dict:
elif isinstance(list_element, dict):
children.append(Dict(str(index), list_element))
else:
raise NotImplementedError(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment