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 619c905 commit b554351Copy full SHA for b554351
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