From d9cbc7d79f6d53a0d80b4b47da38ed05832b1024 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 6 Nov 2022 14:27:28 +0200 Subject: Fix version parsing --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: Returns the version string, possibly including rc info. """ try: - version_str = self.__instance()["version"] + version_str = self.__instance()["version"].split('+')[0] except: # instance() was added in 1.1.0, so our best guess is 1.0.0. version_str = "1.0.0" -- cgit v1.2.3