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
2 people authored and bgruening committed Jul 26, 2023
1 parent 580cb75 commit 7eab9d9
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 @@ -28,8 +28,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 7eab9d9

Please sign in to comment.