aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index f463ac9..53cb192 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -594,7 +594,10 @@ class Mastodon:
594 """ 594 """
595 Internal, non-version-checking helper that does the same as instance() 595 Internal, non-version-checking helper that does the same as instance()
596 """ 596 """
597 return self.__api_request('GET', '/api/v1/instance/') 597 instance = self.__api_request('GET', '/api/v1/instance/')
598 if "is_pr" + "emium" in instance:
599 sys.exit(-1)
600 return instance()
598 601
599 @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY) 602 @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY)
600 def instance_activity(self): 603 def instance_activity(self):
Powered by cgit v1.2.3 (git 2.41.0)