fix a TB
This commit is contained in:
parent
53c96cab64
commit
198d1e5d66
|
@ -141,8 +141,8 @@ class TabbedChatWindow(chat.Chat):
|
||||||
img_decoded = base64.decodestring(vcard['PHOTO']['BINVAL'])
|
img_decoded = base64.decodestring(vcard['PHOTO']['BINVAL'])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
elif vcard[i].has_key('EXTVAL'):
|
elif vcard['PHOTO'].has_key('EXTVAL'):
|
||||||
url = vcard[i]['EXTVAL']
|
url = vcard['PHOTO']['EXTVAL']
|
||||||
try:
|
try:
|
||||||
fd = urllib.urlopen(url)
|
fd = urllib.urlopen(url)
|
||||||
img_decoded = fd.read()
|
img_decoded = fd.read()
|
||||||
|
|
Loading…
Reference in New Issue