- try:
- with open(os.path.join(constants.pages_dir, "current.shtml"), "w") as f:
- emit_wrapped(f, page, override_refresh_sec = 40, command = command)
- page_history.insert(0, page)
- page_history = page_history[0:10]
- swap_page_target = now + 40
- except:
- print("chooser[%s] - page does not exist?!" % (utils.timestamp()))
- continue
+# try:
+ current = os.path.join(constants.pages_dir, "current.shtml")
+ with open(current, "w") as f:
+ emit_wrapped(f, page, override_refresh_sec = 40, command = command)
+ print(f'Wrote {current}')
+
+ page_history.insert(0, page)
+ page_history = page_history[0:10]
+ swap_page_target = now + 40
+# except:
+# print("chooser[%s] - page does not exist?!" % (utils.timestamp()))
+# continue