소스 검색

gw: Catch all Exceptions and log to console

Keir Fraser 5 년 전
부모
커밋
edb3ec77e1
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      scripts/gw.py

+ 1 - 2
scripts/gw.py

@@ -11,7 +11,6 @@
 
 import sys
 import importlib
-from greaseweazle import error
 
 missing_modules = []
 
@@ -61,7 +60,7 @@ try:
     res = main(argv)
     if res is None:
         res = 0
-except (error.Fatal, FileNotFoundError) as err:
+except Exception as err:
     print("** FATAL ERROR:")
     print(err)
     res = 1