If command handler returns, _preprocess_command should return None not "None"

This commit is contained in:
Gina Häußge committed 2014-09-17 17:33:58 +02:00
1 parent a04a61f61b
commit b3050f1058
1 file changed
+2
@@ -665,6 +665,8 @@ class RepRapProtocol(Protocol):
gcode_command_handler = "_gcode_%s" % command.command
if hasattr(self, gcode_command_handler) and not self.is_streaming():
command, with_checksum, with_line_number = getattr(self, gcode_command_handler)(command, with_checksum, with_line_number)
if command is None:
return None
if with_checksum:
if with_line_number is not None: