From 25e535ba24a7203d33c326238b285a48f0ac217a Mon Sep 17 00:00:00 2001 From: bashrc Date: Sat, 1 Aug 2026 14:48:51 +0100 Subject: [PATCH] Return list --- src/pyjsonld.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyjsonld.py b/src/pyjsonld.py index 7fc125862..ca407e60d 100644 --- a/src/pyjsonld.py +++ b/src/pyjsonld.py @@ -916,7 +916,7 @@ class JsonLdProcessor(object): except BaseException as cause: print('EX: Could not expand input before flattening. ' + str(cause)) - return {} + return [] # do flattening flattened = self._flatten(expanded) @@ -932,7 +932,7 @@ class JsonLdProcessor(object): except BaseException as cause: print('EX: ' + 'Could not compact flattened output. ' + str(cause)) - return {} + return [] return compacted