From 22315b1742a71b4fa1b2558a83d75b64a0f5c88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 27 Oct 2022 11:40:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20error=20message=20for=20wr?= =?UTF-8?q?ong=20permissions=20on=20plugins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of dumping the permission object, dump the default text in the error. As mentioned in #4670 --- src/octoprint/access/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/access/permissions.py b/src/octoprint/access/permissions.py index d766b4b30..2444bbb83 100644 --- a/src/octoprint/access/permissions.py +++ b/src/octoprint/access/permissions.py @@ -185,7 +185,7 @@ class PluginIdentityContext: # check the permission here if not permission.can(): if self.http_exception: - abort(self.http_exception, permission) + abort(self.http_exception) raise PermissionDenied(permission) def __exit__(self, *args):