Merge pull request #4034 from jjtk88/m117_virtual_printer_fix

catch exception when M117 with no arguments is sent using virtual printer
This commit is contained in:
Gina Häußge authored and GitHub committed 2021-03-03 10:39:12 +01:00
commit 0494fa5753
1 file changed
+4 -1
@@ -745,7 +745,10 @@ class VirtualPrinter(object):
# type: (str) -> None
# we'll just use this to echo a message, to allow playing around with pause triggers
if self._echoOnM117:
self._send("echo:%s" % re.search(r"M117\s+(.*)", data).group(1))
try:
self._send("echo:%s" % re.search(r"M117\s+(.*)", data).group(1))
except AttributeError:
self._send("echo:")
def _gcode_M155(self, data):
# type: (str) -> None