Fix asks -> httpx bug on get_ipfs_link response handling

guilles_counter_review
Guillermo Rodriguez 2025-02-05 00:40:37 -03:00
parent 722bc4af57
commit 93ee65087f
No known key found for this signature in database
GPG Key ID: 002CC5F1E6BDA53E
1 changed files with 1 additions and 1 deletions

View File

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