Fix asks -> httpx bug on get_ipfs_link response handling

pull/47/head
Guillermo Rodriguez 2025-02-05 00:40:37 -03:00
parent 4c9be4e63e
commit e66f8d74fd
No known key found for this signature in database
GPG Key ID: 002CC5F1E6BDA53E
1 changed files with 1 additions and 1 deletions

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