mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-07 05:01: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
|
from enum import IntEnum
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
import traceback
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from suntimes import SunTimes
|
from suntimes import SunTimes
|
||||||
|
@ -101,6 +102,7 @@ def main_loop(ahoy_config):
|
||||||
sys.exit()
|
sys.exit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print ('Exception catched: %s' % e)
|
print ('Exception catched: %s' % e)
|
||||||
|
traceback.print_exc()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue