From 0ad057cdbbe7c93f0980378ee3d02823f2c27aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 16 Nov 2016 16:09:42 +0100 Subject: [PATCH] Fix PrintFailed event Was missing the new fields in the payload --- src/octoprint/printer/standard.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index c693b0cd..68496930 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -487,12 +487,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): # mark print as failure if self._selectedFile is not None: self._fileManager.log_print(FileDestinations.SDCARD if self._selectedFile["sd"] else FileDestinations.LOCAL, self._selectedFile["filename"], time.time(), self._comm.getPrintTime(), False, self._printerProfileManager.get_current_or_default()["id"]) - payload = { - "file": self._selectedFile["filename"], - "origin": FileDestinations.LOCAL - } - if self._selectedFile["sd"]: - payload["origin"] = FileDestinations.SDCARD + payload = self._payload_for_print_job_event() eventManager().fire(Events.PRINT_FAILED, payload) def get_state_string(self, state=None):