chore: Get rid of all __await__ methods

This commit is contained in:
2023-11-16 05:40:08 +01:00
parent b30603a190
commit f2a54b5ce6
3 changed files with 17 additions and 12 deletions

View File

@@ -73,7 +73,10 @@ async def test_client():
print("> RESPONSE:", msg)
try:
print("> RESPONSE:", await api.call("whoami", [], "sync"))
response_handler = api.call("whoami", [], "sync")
response = await response_handler.get_response()
print("> RESPONSE:", response)
except MuxRPCAPIException as e:
print(e)