printrun-src/printrun/pronsole.py

changeset 38
700241b53fe7
parent 15
0bbb006204fc
child 39
74801c0f2709
--- a/printrun-src/printrun/pronsole.py	Thu Aug 23 12:32:26 2018 +0200
+++ b/printrun-src/printrun/pronsole.py	Fri Aug 24 10:27:47 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()),

mercurial