We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73032d commit 7de6dabCopy full SHA for 7de6dab
1 file changed
pythonkuma/uptimekuma.py
@@ -79,7 +79,7 @@ async def metrics(self) -> dict[str | int, UptimeKumaMonitor]:
79
)
80
request.raise_for_status()
81
except ClientResponseError as e:
82
- if e.status is HTTPStatus.UNAUTHORIZED:
+ if e.status == HTTPStatus.UNAUTHORIZED:
83
msg = "Authentication failed for %s"
84
raise UptimeKumaAuthenticationException(msg, str(url)) from e
85
msg = "Request for %s failed with status code %s"
0 commit comments