From 5433992395c720163466fbf61f31d80fc73c84eb Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 26 Jun 2023 10:54:49 +0200 Subject: [PATCH] Fix error type, thanks patlu --- scripts/knotctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/knotctl b/scripts/knotctl index 947530e..271fb3b 100755 --- a/scripts/knotctl +++ b/scripts/knotctl @@ -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