summaryrefslogtreecommitdiff
path: root/examples/download_avatars.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/download_avatars.py')
-rwxr-xr-xexamples/download_avatars.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/download_avatars.py b/examples/download_avatars.py
index 1d7d72f8..408c2146 100755
--- a/examples/download_avatars.py
+++ b/examples/download_avatars.py
@@ -75,7 +75,7 @@ class AvatarDownloader(slixmpp.ClientXMPP):
print("Received vCard avatar update from %s" % pres['from'].bare)
try:
result = yield from self['xep_0054'].get_vcard(pres['from'].bare, cached=True,
- coroutine=True, timeout=5)
+ timeout=5)
except XMPPError:
print("Error retrieving avatar for %s" % pres['from'])
return
@@ -97,7 +97,7 @@ class AvatarDownloader(slixmpp.ClientXMPP):
if not info['url']:
try:
result = yield from self['xep_0084'].retrieve_avatar(msg['from'].bare, info['id'],
- coroutine=True, timeout=5)
+ timeout=5)
except XMPPError:
print("Error retrieving avatar for %s" % msg['from'])
return