This commit is contained in:
Yann Leboulanger 2005-07-20 21:11:19 +00:00
parent 53c96cab64
commit 198d1e5d66
1 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ class TabbedChatWindow(chat.Chat):
img_decoded = base64.decodestring(vcard['PHOTO']['BINVAL'])
except:
pass
elif vcard[i].has_key('EXTVAL'):
url = vcard[i]['EXTVAL']
elif vcard['PHOTO'].has_key('EXTVAL'):
url = vcard['PHOTO']['EXTVAL']
try:
fd = urllib.urlopen(url)
img_decoded = fd.read()