Fix asks -> httpx bug on get_ipfs_link response handling

pull/48/head
Guillermo Rodriguez 2025-02-05 00:40:37 -03:00
parent 60c9605aa0
commit 251892806d
No known key found for this signature in database
GPG Key ID: 002CC5F1E6BDA53E
1 changed files with 1 additions and 1 deletions
skynet/dgpu

View File

@ -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