diff --git a/services/core.py b/services/core.py index 18d25a3..12ad62c 100644 --- a/services/core.py +++ b/services/core.py @@ -56,7 +56,8 @@ async def get_my_followings(): r = response.json() data = r.get("data") if data: - authors = data.get(query_name, {}).get("authors", []) - return authors - else: - return [] + d = data.get(query_name) + if d: + authors = d.get("authors", []) + return authors + return []