Skip to content

Commit

Permalink
spoolman: type checking fix
Browse files Browse the repository at this point in the history
Signed-off-by:  Eric Callahan <[email protected]>
  • Loading branch information
Arksine committed Jan 16, 2024
1 parent c196f75 commit 8d6def7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moonraker/components/spoolman.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ async def _handle_klippy_ready(self):
def _get_response_error(self, response: HttpResponse) -> str:
err_msg = f"HTTP error: {response.status_code} {response.error}"
try:
json_msg = response.json()["message"]
resp: Dict[str, Any] = response.json()
json_msg: str = resp["message"]
except Exception:
pass
else:
Expand Down

0 comments on commit 8d6def7

Please sign in to comment.