mirror of https://github.com/skygpu/skynet.git
Fix asks -> httpx bug on get_ipfs_link response handling
parent
722bc4af57
commit
93ee65087f
|
@ -305,7 +305,7 @@ class NetConnector:
|
||||||
logging.warning(f'couldn\'t get ipfs binary data at {link}!')
|
logging.warning(f'couldn\'t get ipfs binary data at {link}!')
|
||||||
|
|
||||||
# attempt to decode as image
|
# 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')
|
logging.info('decoded as image successfully')
|
||||||
|
|
||||||
return input_data
|
return input_data
|
||||||
|
|
Loading…
Reference in New Issue