diff options
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/db/rdf/wiki.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gn3/db/rdf/wiki.py b/gn3/db/rdf/wiki.py index 0ff4483..f945f06 100644 --- a/gn3/db/rdf/wiki.py +++ b/gn3/db/rdf/wiki.py @@ -145,11 +145,9 @@ CONSTRUCT { ) data = results.get("data") for result in data: - categories = result.get("categories") + categories = result.get("categories") or [] if categories and isinstance(categories, str): result["categories"] = [categories] - else: - result["categories"] = [] pmids = result.get("pubmed_ids") if pmids and isinstance(pmids, str): result["pubmed_ids"] = [pmids] |