diff options
author | Lorenz Diener <[email protected]> | 2017-12-11 14:02:57 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-12-11 14:02:57 +0100 |
commit | 3bf2299e7e2c89b83aefe079ded3e8e6ee668517 (patch) | |
tree | 603a55d3998830b4f03c984b0cf406a53b031658 /mastodon | |
parent | 9acfb0d3d80d49e6dd6d597ef355cb84bfae698e (diff) | |
download | mastodon.py-3bf2299e7e2c89b83aefe079ded3e8e6ee668517.tar.gz |
Make decorated functions actually return things
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 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 |