Skip to content

Commit cfe0a7a

Browse files
committed
Added empty case handling
1 parent 24741d2 commit cfe0a7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ def retrieve_context(
640640
and component["id"] == component_pk
641641
and component["type"] == "webComponent"
642642
):
643+
context = component.get("context")
644+
if context is None or context == "":
645+
return False, None
643646
return True, json.loads(component.get("context"))
644647

645648
except KeyError as e:

0 commit comments

Comments
 (0)