From 180f44b8763159d55e1c9c9339849765b093cbb7 Mon Sep 17 00:00:00 2001 From: Arksine Date: Mon, 13 Jul 2020 15:27:26 -0400 Subject: [PATCH] webhooks: fix lambda wrapper around _process_request Signed-off-by: Eric Callahan --- klippy/webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/webhooks.py b/klippy/webhooks.py index 1b601342..8be225a4 100644 --- a/klippy/webhooks.py +++ b/klippy/webhooks.py @@ -161,7 +161,7 @@ class ServerConnection: % (req)) continue self.reactor.register_callback( - lambda e, s=self: s._process_request(web_request)) + lambda e, s=self, wr=web_request: s._process_request(wr)) def _process_request(self, web_request): try: