Skip to content

Commit

Permalink
fix unknown variable
Browse files Browse the repository at this point in the history
  • Loading branch information
geo-martino committed Jun 27, 2024
1 parent c9df3f3 commit 57aa741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion musify/api/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ async def _handle_bad_response(self, response: ClientResponse) -> bool:
response_json = await self._get_json_response(response)
error_message = response_json.get("error", {}).get("message")
if error_message is None:
status = HTTPStatus(error_status or response.status)
status = HTTPStatus(response.status)
error_message = f"{status.phrase} | {status.description}"

handled = False
Expand Down

0 comments on commit 57aa741

Please sign in to comment.