Fix examples relying on the changed API

This commit is contained in:
mathieui
2015-02-28 13:29:08 +01:00
parent bf5d7c83af
commit 83d00a5913
4 changed files with 8 additions and 10 deletions

View File

@@ -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