mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-05 12:11:39 +02:00
RPI: print backtrace for unhandled exception
This commit is contained in:
parent
ac45ff7108
commit
5beed9d8e0
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue