Skip to content

Commit

Permalink
Return "unkown" if show version info is disabled in Grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
schmiddim authored Apr 23, 2024
1 parent 4bd145a commit b9fe114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafana_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def connect(self):
def version(self):
if not self._grafana_info:
self._grafana_info = self.health.check()
version = self._grafana_info["version"]
version = self._grafana_info.get("version", "unknown")
logger.info(f"Inquired Grafana version: {version}")
return version

Expand Down

0 comments on commit b9fe114

Please sign in to comment.