mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
fmt
This commit is contained in:
+2
-2
@@ -273,8 +273,8 @@ async def proxy(
|
||||
if request_body:
|
||||
try:
|
||||
request_body_dict = json.loads(request_body)
|
||||
except json.JSONDecodeError:
|
||||
print(f"Error: failed to parse request body '{request_body}'")
|
||||
except json.JSONDecodeError as e:
|
||||
print(f"Error: failed to parse request body '{e}'")
|
||||
return Response(
|
||||
content=json.dumps(
|
||||
{"error": {"type": "invalid_request_error", "code": "invalid_json"}}
|
||||
|
||||
Reference in New Issue
Block a user