remove try catch

This commit is contained in:
robert 2024-02-01 08:24:56 +00:00
parent 5387a5163b
commit fe4b0a0313

View File

@ -95,7 +95,7 @@ def monitor(charge_point_power):
#drawblack.text((100, 80), str(charge_point_power), font = font16, fill = 0) #drawblack.text((100, 80), str(charge_point_power), font = font16, fill = 0)
try:
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage)) epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))
#logging.info("Clear...") #logging.info("Clear...")
@ -105,13 +105,13 @@ def monitor(charge_point_power):
logging.info("Goto Sleep...") logging.info("Goto Sleep...")
epd.sleep() epd.sleep()
except IOError as e: #except IOError as e:
logging.info(e) # logging.info(e)
except KeyboardInterrupt: #except KeyboardInterrupt:
logging.info("ctrl + c:") # logging.info("ctrl + c:")
epd2in13b_V3.epdconfig.module_exit() # epd2in13b_V3.epdconfig.module_exit()
exit() # exit()
#client.loop_forever() #client.loop_forever()