Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
3b74f76f
Commit
3b74f76f
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix await response
parent
b216488e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/create_and_publish_identity.py
+1
-1
1 addition, 1 deletion
examples/create_and_publish_identity.py
examples/send_certification.py
+1
-1
1 addition, 1 deletion
examples/send_certification.py
examples/send_membership.py
+1
-1
1 addition, 1 deletion
examples/send_membership.py
with
3 additions
and
3 deletions
examples/create_and_publish_identity.py
+
1
−
1
View file @
3b74f76f
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
examples/send_certification.py
+
1
−
1
View file @
3b74f76f
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
examples/send_membership.py
+
1
−
1
View file @
3b74f76f
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment