From 5d326e9c57656401c8f6fe8718f373b99429cd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 18 May 2021 14:42:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Ensure=20int=20for=20printTimeLe?= =?UTF-8?q?ft=20from=20plugins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #4084 --- src/octoprint/printer/standard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index a2084db7e..0aaa197a6 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -1184,13 +1184,14 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): ) try: - printTimeLeft, printTimeLeftOrigin = estimator.estimate( + ptl, printTimeLeftOrigin = estimator.estimate( progress, printTime, cleanedPrintTime, statisticalTotalPrintTime, statisticalTotalPrintTimeType, ) + printTimeLeft = int(ptl) except Exception: self._logger.exception( "Error while estimating print time via {}".format(estimator)