From 3bf2299e7e2c89b83aefe079ded3e8e6ee668517 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 11 Dec 2017 14:02:57 +0100 Subject: Make decorated functions actually return things --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): raise MastodonVersionError("Specified version does not support this API endpoint (Available from " + version + ")") elif patch > self.mastodon_patch: raise MastodonVersionError("Specified version does not support this API endpoint (Available from " + version + ")") - function(self, *args, **kwargs) + return function(self, *args, **kwargs) function.__doc__ = function.__doc__ + "\n\n *Minumum Mastodon version: " + version + "*" return decorate(function, wrapper) return api_min_version_decorator -- cgit v1.2.3