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: