diff options
-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 71c882c..0317a75 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -49,7 +49,7 @@ def api_version(version): | |||
49 | raise MastodonVersionError("Specified version does not support this API endpoint (Available from " + version + ")") | 49 | raise MastodonVersionError("Specified version does not support this API endpoint (Available from " + version + ")") |
50 | elif patch > self.mastodon_patch: | 50 | elif patch > self.mastodon_patch: |
51 | raise MastodonVersionError("Specified version does not support this API endpoint (Available from " + version + ")") | 51 | raise MastodonVersionError("Specified version does not support this API endpoint (Available from " + version + ")") |
52 | function(self, *args, **kwargs) | 52 | return function(self, *args, **kwargs) |
53 | function.__doc__ = function.__doc__ + "\n\n *Minumum Mastodon version: " + version + "*" | 53 | function.__doc__ = function.__doc__ + "\n\n *Minumum Mastodon version: " + version + "*" |
54 | return decorate(function, wrapper) | 54 | return decorate(function, wrapper) |
55 | return api_min_version_decorator | 55 | return api_min_version_decorator |