Skip to content

Commit

Permalink
Chore: Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Aug 28, 2023
1 parent ec9cefe commit bc3e314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafana_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __request_runner(url, json=None, data=None, headers=None):
response = r.json()
except ValueError:
response = r.text
message = response["message"] if type(response) == dict and "message" in response else r.text
message = response["message"] if isinstance(response, dict) and "message" in response else r.text

if 500 <= r.status_code < 600:
raise GrafanaServerError(
Expand Down

0 comments on commit bc3e314

Please sign in to comment.