瀏覽代碼

added traceback on error

subDesTagesMitExtraKaese 4 年之前
父節點
當前提交
8d9e67dd8c
共有 1 個文件被更改,包括 2 次插入0 次删除
  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")