aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <[email protected]>2022-11-06 14:27:28 +0200
committerhalcy <[email protected]>2022-11-06 14:27:28 +0200
commitd9cbc7d79f6d53a0d80b4b47da38ed05832b1024 (patch)
treeb3590f8a7862836e25d2fe3676d5f2e6b4898499
parent5fe162e5434632814fc61bd318a0887332d10579 (diff)
downloadmastodon.py-d9cbc7d79f6d53a0d80b4b47da38ed05832b1024.tar.gz
Fix version parsing
-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)