aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py5
1 files changed, 2 insertions, 3 deletions
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:
3341 """ 3341 """
3342 Returns without True if streaming API is okay, False or raises an error otherwise. 3342 Returns without True if streaming API is okay, False or raises an error otherwise.
3343 """ 3343 """
3344 api_okay = self.__api_request( 3344 api_okay = self.__api_request('GET', '/api/v1/streaming/health', base_url_override=self.__get_streaming_base(), parse=False)
3345 'GET', '/api/v1/streaming/health', base_url_override=self.__get_streaming_base(), parse=False) 3345 if api_okay in [b'OK', b'success']:
3346 if api_okay == b'OK':
3347 return True 3346 return True
3348 return False 3347 return False
3349 3348
Powered by cgit v1.2.3 (git 2.41.0)