Fix error type, thanks patlu
This commit is contained in:
parent
5b039dc8da
commit
5433992395
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue