fix: Update to use json value
All checks were successful
Build Docker / Build Docker (push) Successful in 31s

This commit is contained in:
Nathan Woodburn 2024-06-20 12:54:57 +10:00
parent 770f20773b
commit 62eb30bd2d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -524,13 +524,11 @@ def issue_token():
try:
resp = authorization.create_token_response()
if hasattr(resp, 'json'):
print(resp.json(), flush=True)
elif hasattr(resp, 'content'):
print(resp.json, flush=True)
if hasattr(resp, 'content'):
print(resp.content, flush=True)
elif hasattr(resp, 'data'):
if hasattr(resp, 'data'):
print(resp.data, flush=True)
else:
print("Unknown response structure:", resp)
return resp
except OAuth2Error as error:
print(json.dumps({