Skip to content

Commit

Permalink
prefer .get for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov committed Dec 13, 2023
1 parent 4d10f45 commit 53f8f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portal_visualization/builder_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
def get_ancestor_assaytypes(entity, get_assaytype):
return [get_assaytype(ancestor.get('uuid')).get('assaytype')
for ancestor
in entity['immediate_ancestors']]
in entity.get('immediate_ancestors')]


def get_view_config_builder(entity, get_assaytype):
Expand Down

0 comments on commit 53f8f76

Please sign in to comment.