From b42c753d3f79923ec7ebdcb9af8bfdc2c09e105a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 17 Feb 2020 17:32:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20a=20Py3=20bug=20with=20the?= =?UTF-8?q?=20self.=5Fprinter=20wrapper=20in=20plugins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/server/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 34061017a..3983909f4 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -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) \