Skip to content

Commit cc57c75

Browse files
committed
Fix KeyError @make_xml_codelist
1 parent fea706e commit cc57c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prefix_finder/frontend/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def make_xml_codelist(use_branch="master"):
551551
items = ET.SubElement(root, "codelist-items")
552552

553553
for entry in org_id_dict[use_branch].values():
554-
if entry['access'] and entry['access']['availableOnline']:
554+
if entry['access'] and entry['access'].get('availableOnline'):
555555
publicdb = str(1)
556556
else:
557557
publicdb = str(0)

0 commit comments

Comments
 (0)