Skip to content

Commit

Permalink
Use an empty list as topic and function when they are missing from bi…
Browse files Browse the repository at this point in the history
…o.tools metadata

Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
kysrpex and nsoranzo authored Jul 24, 2023
1 parent b4d3611 commit b1f7c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/tool_util/biotools/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class BiotoolsEntry:
def from_json(from_json: Dict[str, Any]) -> 'BiotoolsEntry':
entry = BiotoolsEntry()
entry.biotoolsID = from_json["biotoolsID"]
entry.topic = from_json.get("topic", [{}])
entry.function = from_json.get("function", [{}])
entry.topic = from_json.get("topic", [])
entry.function = from_json.get("function", [])
return entry

@property
Expand Down

0 comments on commit b1f7c47

Please sign in to comment.