From dfabae2f54950f5d34a1cf2c4747fdd565c178a5 Mon Sep 17 00:00:00 2001 From: halcy Date: Tue, 15 Nov 2022 10:46:23 +0200 Subject: small health fix --- mastodon/Mastodon.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 11cd2f3..7de4be9 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -3341,9 +3341,8 @@ class Mastodon: """ Returns without True if streaming API is okay, False or raises an error otherwise. """ - api_okay = self.__api_request( - 'GET', '/api/v1/streaming/health', base_url_override=self.__get_streaming_base(), parse=False) - if api_okay == b'OK': + api_okay = self.__api_request('GET', '/api/v1/streaming/health', base_url_override=self.__get_streaming_base(), parse=False) + if api_okay in [b'OK', b'success']: return True return False -- cgit v1.2.3