Explorar el Código

added traceback on error

subDesTagesMitExtraKaese hace 4 años
padre
commit
8d9e67dd8c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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")