--- a/printrun-src/printrun/pronsole.py Fri Aug 24 10:27:47 2018 +0200 +++ b/printrun-src/printrun/pronsole.py Sat Sep 08 12:00:12 2018 +0200 @@ -1169,18 +1169,18 @@ if output: self.log("Start command output:") self.log(output.rstrip()) - #try: - # powerset_print_start(reason = "Preventing sleep during print") - #except: - # self.logError(_("Failed to set power settings:") - # + "\n" + traceback.format_exc()) + try: + powerset_print_start(reason = "Preventing sleep during print") + except: + self.logError(_("Failed to set power settings:") + + "\n" + traceback.format_exc()) def endcb(self): - #try: - # powerset_print_stop() - #except: - # self.logError(_("Failed to set power settings:") - # + "\n" + traceback.format_exc()) + try: + powerset_print_stop() + except: + self.logError(_("Failed to set power settings:") + + "\n" + traceback.format_exc()) if self.p.queueindex == 0: print_duration = int(time.time() - self.starttime + self.extra_print_time) self.log(_("Print ended at: %(end_time)s and took %(duration)s") % {"end_time": format_time(time.time()),