🐛 Fix a Py3 bug with the self._printer wrapper in plugins

This commit is contained in:
Gina Häußge committed 2020-02-17 17:32:20 +01:00
1 parent 924cd5cb4c
commit b42c753d3f
1 file changed
+3
+3
View File
@@ -478,6 +478,9 @@ class Server(object):
class TaggedFuncsPrinter(wrapt.ObjectProxy):
def __getattribute__(self, attr):
__wrapped__ = super(TaggedFuncsPrinter, self).__getattribute__("__wrapped__")
if attr == "__wrapped__":
return __wrapped__
item = getattr(__wrapped__, attr)
if callable(item) \
and ("tags" in item.__code__.co_varnames or "kwargs" in item.__code__.co_varnames) \