diff --git a/octoprint_shutdownprinter/__init__.py b/octoprint_shutdownprinter/__init__.py index 954a1d7..9dc63bb 100644 --- a/octoprint_shutdownprinter/__init__.py +++ b/octoprint_shutdownprinter/__init__.py @@ -287,8 +287,8 @@ def _shutdown_printer_API_CMD(self, mode): def _extraCommand(self): if self.extraCommand != "": - process = subprocess.Popen(mCmdFound, shell=True, stdin = None, stdout=subprocess.PIPE) - self.extraCommand = process.communicate() + process = subprocess.Popen(mCmdFound, shell=True, stdin = None, stdout=subprocess.PIPE) + self.extraCommand = process.communicate() self._logger.info("response extraCommand: %s" % mCmdFound.rstrip().strip()) def _shutdown_printer_by_API(self):