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.")