aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 3d154bb..6afb143 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -451,7 +451,7 @@ class Mastodon:
451 Returns the version string, possibly including rc info. 451 Returns the version string, possibly including rc info.
452 """ 452 """
453 try: 453 try:
454 version_str = self.__instance()["version"] 454 version_str = self.__instance()["version"].split('+')[0]
455 except: 455 except:
456 # instance() was added in 1.1.0, so our best guess is 1.0.0. 456 # instance() was added in 1.1.0, so our best guess is 1.0.0.
457 version_str = "1.0.0" 457 version_str = "1.0.0"
Powered by cgit v1.2.3 (git 2.41.0)