Browse Source

added traceback on error

subDesTagesMitExtraKaese 4 years ago
parent
commit
8d9e67dd8c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      raspberry-pi/main.py

+ 2 - 0
raspberry-pi/main.py

@@ -6,6 +6,7 @@ import threading
 import queue
 import configparser
 import tkinter as tk
+import traceback
 
 conf = configparser.ConfigParser()
 conf.read('config.ini')
@@ -73,6 +74,7 @@ def main():
     print("stop")
   except Exception as e:
     print("Error: ",e)
+    traceback.print_exc()
   finally:
     down_queue.put("stop")