From 93ee65087fbc23fd27e04e65fcae409c7452e59c Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Wed, 5 Feb 2025 00:40:37 -0300 Subject: [PATCH] Fix asks -> httpx bug on get_ipfs_link response handling --- skynet/dgpu/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skynet/dgpu/network.py b/skynet/dgpu/network.py index 03fc303..d3c573a 100755 --- a/skynet/dgpu/network.py +++ b/skynet/dgpu/network.py @@ -305,7 +305,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