fix(aurora): fixed keyerror in aurora importer

This commit is contained in:
Seaswimmer 2023-12-28 05:36:17 -05:00
parent acc017d61c
commit 77efa6b5c1
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -67,7 +67,7 @@ class ImportAuroraView(ui.View):
metadata = {}
else:
metadata: Dict[str, any] = json.loads(case["metadata"])
if not metadata['imported_from']:
if not metadata.get('imported_from'):
metadata.update({
'imported_from': 'Aurora'
})