fix version test

pull/397/head
halcy 2025-02-14 01:23:41 +02:00
rodzic 108d51cbd6
commit 7f5169cef8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -321,7 +321,7 @@ class Mastodon(Internals):
Returns the access token as a string. Returns the access token as a string.
""" """
# Is the version > 4.4.0? Throw on trying to log in with password with a more informative message than the API error # Is the version > 4.4.0? Throw on trying to log in with password with a more informative message than the API error
if self.mastodon_major >= 4 and self.mastodon_minor >= 4: if self.mastodon_major >= 4 and self.mastodon_minor >= 4 or self.mastodon_major > 4:
raise MastodonIllegalArgumentError('Password flow is no longer supported in Mastodon 4.4.0 and later.') raise MastodonIllegalArgumentError('Password flow is no longer supported in Mastodon 4.4.0 and later.')
if username is not None and password is not None: if username is not None and password is not None: