chats-authors-fix-2
All checks were successful
deploy / deploy (push) Successful in 1m13s

This commit is contained in:
Untone 2023-11-14 22:17:00 +03:00
parent 6547cea970
commit 1b94353850

View File

@ -20,11 +20,12 @@ async def get_all_authors():
async with AsyncClient() as client:
try:
response = await client.post(API_BASE, headers=headers, json=gql)
print(f"[services.core] {query_name}: [{response.status_code}] {len(response.text)} bytes")
except Exception:
import traceback
traceback.print_exc()
print(f"[services.core] {query_name}: [{response.status_code}] {len(response.text)} bytes")
if response.status_code != 200:
return None
r = response.json()
@ -45,12 +46,13 @@ async def get_my_followings():
}
async with AsyncClient() as client:
try:
response = await client.post(API_BASE, headers=headers, json=gql)
response = await client.post(API_BASE, headers=headers, json=gql)
print(f"[services.core] {query_name}: [{response.status_code}] {len(response.text)} bytes")
except Exception:
import traceback
traceback.print_exc()
print(f"[services.core] {query_name}: [{response.status_code}] {len(response.text)} bytes")
if response.status_code != 200:
return None
r = response.json()