diff --git a/rocrate/model/preview.py b/rocrate/model/preview.py index ecd3345..e8dab67 100644 --- a/rocrate/model/preview.py +++ b/rocrate/model/preview.py @@ -70,7 +70,7 @@ def stringify(a): if a._jsonld and a._jsonld['name']: return a._jsonld['name'] else: - return a + return str(a) @template_function def is_object_list(a): @@ -78,8 +78,7 @@ def is_object_list(a): for obj in a: if obj is not str: return True - else: - return False + return False template.close() context_entities = []