From 1830b22bcbc3cc0785b7c0805375310e461e9103 Mon Sep 17 00:00:00 2001 From: fwaggle Date: Sun, 6 Nov 2022 09:58:03 +1100 Subject: Fix gotosocial crash in search() Set a default 1.0.0 version if nothing else alters it so that version checks don't raise an Exception. Fixes #249. --- mastodon/Mastodon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 296921e..16f2556 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -425,6 +425,10 @@ class Mastodon: if not version_check_mode in ["created", "changed", "none"]: raise MastodonIllegalArgumentError("Invalid version check method.") self.version_check_mode = version_check_mode + + self.mastodon_major = 1 + self.mastodon_minor = 0 + self.mastodon_patch = 0 # Versioning if mastodon_version == None and self.version_check_mode != 'none': -- cgit v1.2.3