mirror of
https://codeberg.org/Freedium-cfd/web.git
synced 2026-03-11 09:04:37 +00:00
Trying fix some problems with API
This commit is contained in:
parent
87343ef595
commit
674bae53f8
1 changed files with 2 additions and 2 deletions
|
|
@ -48,10 +48,10 @@ async def query_post_by_id(post_id: str, timeout: int = 3, auth_cookies: str = "
|
|||
except Exception as ex:
|
||||
logger.debug("Failed to parse response data as JSON")
|
||||
logger.exception(ex)
|
||||
raise ex
|
||||
else:
|
||||
logger.error(f"Failed to fetch post by ID {post_id} with status code: {request.status}")
|
||||
|
||||
response_data = await request.json()
|
||||
return None
|
||||
|
||||
logger.trace(request.headers)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue