Return list

main
bashrc 2026-08-01 14:48:51 +01:00
parent 148374845f
commit 25e535ba24
1 changed files with 2 additions and 2 deletions

View File

@ -916,7 +916,7 @@ class JsonLdProcessor(object):
except BaseException as cause: except BaseException as cause:
print('EX: Could not expand input before flattening. ' + print('EX: Could not expand input before flattening. ' +
str(cause)) str(cause))
return {} return []
# do flattening # do flattening
flattened = self._flatten(expanded) flattened = self._flatten(expanded)
@ -932,7 +932,7 @@ class JsonLdProcessor(object):
except BaseException as cause: except BaseException as cause:
print('EX: ' + print('EX: ' +
'Could not compact flattened output. ' + str(cause)) 'Could not compact flattened output. ' + str(cause))
return {} return []
return compacted return compacted