format+fix-6
All checks were successful
deploy / deploy (push) Successful in 1m14s

This commit is contained in:
Untone 2023-11-14 21:51:02 +03:00
parent 435a00b558
commit 9dab10d04c

View File

@ -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 []