Browse Source

RPI: print backtrace for unhandled exception

pull/399/head
Christian Ehrlicher 2 years ago
parent
commit
5beed9d8e0
  1. 2
      tools/rpi/hoymiles/__main__.py

2
tools/rpi/hoymiles/__main__.py

@ -10,6 +10,7 @@ import struct
from enum import IntEnum
import re
import time
import traceback
from datetime import datetime
from datetime import timedelta
from suntimes import SunTimes
@ -101,6 +102,7 @@ def main_loop(ahoy_config):
sys.exit()
except Exception as e:
print ('Exception catched: %s' % e)
traceback.print_exc()
raise

Loading…
Cancel
Save