mirror of https://github.com/skygpu/skynet.git
				
				
				
			Fix asks -> httpx bug on get_ipfs_link response handling
							parent
							
								
									4c9be4e63e
								
							
						
					
					
						commit
						e66f8d74fd
					
				| 
						 | 
				
			
			@ -310,7 +310,7 @@ class NetConnector:
 | 
			
		|||
            logging.warning(f'couldn\'t get ipfs binary data at {link}!')
 | 
			
		||||
 | 
			
		||||
        # attempt to decode as image
 | 
			
		||||
        input_data = Image.open(io.BytesIO(res.raw))
 | 
			
		||||
        input_data = Image.open(io.BytesIO(res.read()))
 | 
			
		||||
        logging.info('decoded as image successfully')
 | 
			
		||||
 | 
			
		||||
        return input_data
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue