From bf52304758ec62ac3f15adf6f6e0701ccc25eac9 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 1 Nov 2018 19:42:40 +0100 Subject: [PATCH] Fixed ReadTheDocs --- docs/source/conf.py | 6 +++++- platypush/plugins/__init__.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 657938d3d..765458869 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -181,6 +181,8 @@ intersphinx_mapping = {'https://docs.python.org/': None} todo_include_todos = True autodoc_mock_imports = ['googlesamples.assistant.grpc.audio_helpers', + 'google.assistant.embedded', + 'tenacity', 'smartcard', 'Leap', 'oauth2client', @@ -190,7 +192,9 @@ autodoc_mock_imports = ['googlesamples.assistant.grpc.audio_helpers', 'Adafruit_IO', 'pyperclip', 'dbus', - 'inputs' + 'inputs', + 'inotify', + 'omxplayer', ] sys.path.insert(0, os.path.abspath('../..')) diff --git a/platypush/plugins/__init__.py b/platypush/plugins/__init__.py index 25995913c..fa9b56b22 100644 --- a/platypush/plugins/__init__.py +++ b/platypush/plugins/__init__.py @@ -2,11 +2,14 @@ import sys import logging import traceback +from functools import wraps + from platypush.config import Config from platypush.message.response import Response from platypush.utils import get_decorators def action(f): + @wraps(f) def _execute_action(*args, **kwargs): output = None errors = []