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)