From 69bea0f5b0a7862ba3e7ea8b9ba8f754f7191973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 10 Nov 2014 13:00:18 +0100 Subject: [PATCH] Hooks always get the value of with_line_number, no need for a keyword argument there --- src/octoprint/comm/protocol/reprap/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/comm/protocol/reprap/__init__.py b/src/octoprint/comm/protocol/reprap/__init__.py index da06a87f9..0d7cf5c7f 100644 --- a/src/octoprint/comm/protocol/reprap/__init__.py +++ b/src/octoprint/comm/protocol/reprap/__init__.py @@ -882,7 +882,7 @@ class RepRapProtocol(Protocol): #handle our hooks, if any for hook in self._gcode_hooks[phase]: - command, with_line_number = hook(self, command, with_line_number=with_line_number) + command, with_line_number = hook(self, command, with_line_number) if phase in self._preprocessors and command.command in self._preprocessors[phase]: command, with_line_number = self._preprocessors[phase][command.command](command, with_line_number)