bad idea :(

Sat, 08 Sep 2018 12:00:12 +0200

author
mdd
date
Sat, 08 Sep 2018 12:00:12 +0200
changeset 39
74801c0f2709
parent 38
700241b53fe7
child 40
9cb74db14c42

bad idea :(

printrun-src/printrun/pronsole.py file | annotate | diff | comparison | revisions
--- 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()),

mercurial