From 3b74f76f6dbb183d4d250bd8bdc3a1bacef7f4a4 Mon Sep 17 00:00:00 2001
From: inso <insomniak.fr@gmaiL.com>
Date: Fri, 18 Nov 2016 16:24:39 +0100
Subject: [PATCH] Fix await response

---
 examples/create_and_publish_identity.py | 2 +-
 examples/send_certification.py          | 2 +-
 examples/send_membership.py             | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/create_and_publish_identity.py b/examples/create_and_publish_identity.py
index 164fe5dc..597f12b4 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 a71c5956..1f528fb3 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 91cfc68c..f4e9f967 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()
 
-- 
GitLab