Fix error type, thanks patlu

main
Micke Nordin 1 year ago
parent 5b039dc8da
commit 5433992395
Signed by untrusted user: micke
GPG Key ID: 0DA0A7A5708FE257

@ -308,7 +308,7 @@ def main() -> int:
except KeyError:
output(response.json())
return 1
except json.JSONDecodeError:
except requests.exceptions.JSONDecodeError:
output(
error("Could not decode api response as JSON", "Could not decode"))
return 1

Loading…
Cancel
Save