core-debug
This commit is contained in:
parent
bd09afe0d7
commit
8057af2b8e
|
@ -17,8 +17,9 @@ async def get_author(author_id):
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
response = await client.post(API_BASE, headers=headers, data=gql)
|
response = await client.post(API_BASE, headers=headers, data=gql)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
return False, None
|
return None
|
||||||
r = response.json()
|
r = response.json()
|
||||||
|
print(f"[services.core] got author: {author}")
|
||||||
author = r.get("data", {}).get("getAuthor")
|
author = r.get("data", {}).get("getAuthor")
|
||||||
return author
|
return author
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user