prairiedogbeer / fermenator

Fermentation monitoring and management software
0 stars 0 forks source link

Errors on Exception-Based Shutdown #11

Open prairiedogbeer opened 6 years ago

prairiedogbeer commented 6 years ago

If fermenator shuts down due to an exception, we get errors such as:

Mar 17 21:52:07 raspberrypi python3[1401]: OSError: [Errno 121] Remote I/O error
Mar 17 21:52:08 raspberrypi python3[1401]: Exception ignored in: <bound method MCP23017Relay.__del__ of <fermenator.relay.MCP23017Relay object at 0x7587fc90>>
Mar 17 21:52:08 raspberrypi python3[1401]: Traceback (most recent call last):
Mar 17 21:52:08 raspberrypi python3[1401]: File "/home/gerad/fermenator/fermenator/relay.py", line 76, in __del__
Mar 17 21:52:08 raspberrypi python3[1401]: self.off()
Mar 17 21:52:08 raspberrypi python3[1401]: File "/home/gerad/fermenator/fermenator/relay.py", line 104, in off
Mar 17 21:52:08 raspberrypi python3[1401]: if self._duty_cycle_thread:
Mar 17 21:52:08 raspberrypi python3[1401]: AttributeError: 'MCP23017Relay' object has no attribute '_duty_cycle_thread'