diff options
author | Lorenz Diener <[email protected]> | 2018-07-30 21:14:40 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-07-30 21:14:40 +0200 |
commit | ba3c2a8605806916bf4124daa1afcea4d3a7c9b9 (patch) | |
tree | c91ed12762b3a2a0cf86b15a0afc9bafb461fd51 /mastodon | |
parent | 5148658d9ae2cbd66985a42f3cf3e90bad51553b (diff) | |
download | mastodon.py-ba3c2a8605806916bf4124daa1afcea4d3a7c9b9.tar.gz |
Add follow suggestions test
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index d3b8f93..fc5c178 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -73,7 +73,7 @@ def api_version(created_ver, last_changed_ver, return_value_ver): | |||
73 | print(self.mastodon_minor) | 73 | print(self.mastodon_minor) |
74 | raise MastodonVersionError("Version check failed (Need version " + version + ")") | 74 | raise MastodonVersionError("Version check failed (Need version " + version + ")") |
75 | elif major == self.mastodon_major and minor == self.mastodon_minor and patch > self.mastodon_patch: | 75 | elif major == self.mastodon_major and minor == self.mastodon_minor and patch > self.mastodon_patch: |
76 | raise MastodonVersionError("Version check failed (Need version " + version + ")") | 76 | raise MastodonVersionError("Version check failed (Need version " + version + ", patch is " + str(self.mastodon_patch) + ")") |
77 | return function(self, *args, **kwargs) | 77 | return function(self, *args, **kwargs) |
78 | function.__doc__ = function.__doc__ + "\n\n *Added: Mastodon v" + created_ver + ", last changed: Mastodon v" + last_changed_ver + "*" | 78 | function.__doc__ = function.__doc__ + "\n\n *Added: Mastodon v" + created_ver + ", last changed: Mastodon v" + last_changed_ver + "*" |
79 | return decorate(function, wrapper) | 79 | return decorate(function, wrapper) |