diff --git a/examples/create_and_publish_identity.py b/examples/create_and_publish_identity.py index 164fe5dce56a5a42b5ae93dbe1fe1ea94560b5ee..597f12b4fd95148131324f319c226c630a2f6566 100644 --- a/examples/create_and_publish_identity.py +++ b/examples/create_and_publish_identity.py @@ -80,7 +80,7 @@ async def main(): if response.status == 200: print(await response.text()) else: - print("Error while publishing identity : {0}".format(response.text())) + print("Error while publishing identity : {0}".format(await response.text())) response.close() # Latest duniter-python-api is asynchronous and you have to use asyncio, an asyncio loop and a "as" on the data. diff --git a/examples/send_certification.py b/examples/send_certification.py index a71c59566899e6f96207e39b1195cc9a6f2796ff..1f528fb3ee3f78a20b06dfd2997983391fddf69f 100644 --- a/examples/send_certification.py +++ b/examples/send_certification.py @@ -119,7 +119,7 @@ async def main(): if response.status == 200: print(await response.text()) else: - print("Error while publishing certification : {0}".format(response.text())) + print("Error while publishing certification : {0}".format(await response.text())) response.close() with AIOHTTP_SESSION: diff --git a/examples/send_membership.py b/examples/send_membership.py index 91cfc68cf87c2bcac4c58106fd41142141891d84..f4e9f9673232c46647c3eb5d406b71c0ffc4fae7 100644 --- a/examples/send_membership.py +++ b/examples/send_membership.py @@ -122,7 +122,7 @@ async def main(): if response.status == 200: print(await response.text()) else: - print("Error while publishing membership : {0}".format(response.text())) + print("Error while publishing membership : {0}".format(await response.text())) response.close()