lib.util.run_curl_into(): Fix indentation error
Fix a regregression breaking run_curl() / run_curl_into(), introduced by commit
6db73873e7. A missing indentation raises a non-existing Error after successful JSON parsing, fix that.Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
f27ffae5cd
commit
4df432b22d
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ async def run_curl_into(
|
||||||
f'Failed to parse {len(stdout)} bytes of Curl output ({str(e)})',
|
f'Failed to parse {len(stdout)} bytes of Curl output ({str(e)})',
|
||||||
file = sys.stderr,
|
file = sys.stderr,
|
||||||
)
|
)
|
||||||
raise
|
raise
|
||||||
if not isinstance(ret, expected_type):
|
if not isinstance(ret, expected_type):
|
||||||
raise TypeError(
|
raise TypeError(
|
||||||
f'Expected {expected_type.__name__}, got {type(ret).__name__} from Curl'
|
f'Expected {expected_type.__name__}, got {type(ret).__name__} from Curl'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue