From 83d00a5913e6b7ef71de602e793b3973866c7120 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 28 Feb 2015 13:29:08 +0100 Subject: Fix examples relying on the changed API --- examples/download_avatars.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/download_avatars.py') 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 -- cgit v1.2.3