Skip to content

Commit 49acf72

Browse files
committed
fix: stringify must always return a string
1 parent 6404d56 commit 49acf72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocrate/model/preview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def stringify(a):
7070
if a._jsonld and a._jsonld['name']:
7171
return a._jsonld['name']
7272
else:
73-
return a
73+
return str(a)
7474

7575
@template_function
7676
def is_object_list(a):

0 commit comments

Comments
 (0)