소스 검색

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")