Unverified Commit b1f7c47b authored by José Manuel Domínguez's avatar José Manuel Domínguez Committed by GitHub
Browse files

Use an empty list as topic and function when they are missing from bio.tools metadata

parent b4d3611d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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