fix a TB
This commit is contained in:
		
							parent
							
								
									53c96cab64
								
							
						
					
					
						commit
						198d1e5d66
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue