From 95e64ddfec8fa59193e778a3fff83306f86a4555 Mon Sep 17 00:00:00 2001 From: halcy Date: Sat, 16 Aug 2025 17:05:30 +0300 Subject: [PATCH] Fix tests on 3.8 and 3.7, hopefully --- mastodon/utility.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mastodon/utility.py b/mastodon/utility.py index 435ac42..78c7378 100644 --- a/mastodon/utility.py +++ b/mastodon/utility.py @@ -6,7 +6,7 @@ import datetime import copy import warnings -from mastodon.errors import MastodonAPIError, MastodonIllegalArgumentError, MastodonNotFoundError +from mastodon.errors import MastodonAPIError, MastodonIllegalArgumentError, MastodonNotFoundError, MastodonVersionError from mastodon.compat import IMPL_HAS_BLURHASH, blurhash from mastodon.internals import Mastodon as Internals @@ -52,6 +52,8 @@ class Mastodon(Internals): found_api_version = True except MastodonNotFoundError: pass + except MastodonVersionError: + pass self.__version_check_tried = True if not found_api_version and self.verify_minimum_version("4.3.0", cached=True): warnings.warn("Mastodon version is detected as >= 4.3.0, but no API version found. Please report this.")