diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-15 10:46:23 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-15 10:46:23 +0200 |
commit | dfabae2f54950f5d34a1cf2c4747fdd565c178a5 (patch) | |
tree | 35941737c0ff5aaaae778dbffd05b76cd038593c /mastodon | |
parent | cfcc6bccc77c4747d304ec173c93f4f9839b9012 (diff) | |
download | mastodon.py-dfabae2f54950f5d34a1cf2c4747fdd565c178a5.tar.gz |
small health fix
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 5 |
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 | ||