diff options
author | Lorenz Diener <[email protected]> | 2022-11-06 13:50:04 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-06 13:50:04 +0200 |
commit | 9d3dd85af3b46f77ee2c83995618b96aa66c4794 (patch) | |
tree | d7896a554eead303de58f5ed233451047c4bf5df /mastodon | |
parent | 1b64477862b3238d53828b27722feeb8819db33f (diff) | |
parent | 1830b22bcbc3cc0785b7c0805375310e461e9103 (diff) | |
download | mastodon.py-9d3dd85af3b46f77ee2c83995618b96aa66c4794.tar.gz |
Merge pull request #250 from fwaggle/fix-249
Fix gotosocial crash in search()
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: | |||
425 | if not version_check_mode in ["created", "changed", "none"]: | 425 | if not version_check_mode in ["created", "changed", "none"]: |
426 | raise MastodonIllegalArgumentError("Invalid version check method.") | 426 | raise MastodonIllegalArgumentError("Invalid version check method.") |
427 | self.version_check_mode = version_check_mode | 427 | self.version_check_mode = version_check_mode |
428 | |||
429 | self.mastodon_major = 1 | ||
430 | self.mastodon_minor = 0 | ||
431 | self.mastodon_patch = 0 | ||
428 | 432 | ||
429 | # Versioning | 433 | # Versioning |
430 | if mastodon_version == None and self.version_check_mode != 'none': | 434 | if mastodon_version == None and self.version_check_mode != 'none': |