Skip to content

Commit 84492d0

Browse files
authored
Handle missing action flag due to malformed input file. (#600)
1 parent a881fe5 commit 84492d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recordprocessor/src/process_row.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def process_row(target_disease: list, allowed_operations: set, row: dict) -> dic
1212
(where applicable), version(where applicable) and any diagnostics.
1313
The local_id is combination of unique_id and unique_id_uri combined by "^"
1414
"""
15-
action_flag = row.get("ACTION_FLAG", "").upper()
15+
action_flag = (row.get("ACTION_FLAG") or "").upper()
1616
unique_id_uri = row.get("UNIQUE_ID_URI")
1717
unique_id = row.get("UNIQUE_ID")
1818
local_id = f"{unique_id}^{unique_id_uri}"

0 commit comments

Comments
 (0)