spoolman: type checking fix
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
c196f7548c
commit
8d6def7e41
|
@ -103,7 +103,8 @@ class SpoolManager:
|
||||||
def _get_response_error(self, response: HttpResponse) -> str:
|
def _get_response_error(self, response: HttpResponse) -> str:
|
||||||
err_msg = f"HTTP error: {response.status_code} {response.error}"
|
err_msg = f"HTTP error: {response.status_code} {response.error}"
|
||||||
try:
|
try:
|
||||||
json_msg = response.json()["message"]
|
resp: Dict[str, Any] = response.json()
|
||||||
|
json_msg: str = resp["message"]
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue