소스 검색

gw: Assertion errors should not be caught and should still backtrace.
Ditto for IndexError (and maybe others in future).

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

+ 2 - 0
scripts/gw.py

@@ -60,6 +60,8 @@ try:
     res = main(argv)
     if res is None:
         res = 0
+except (IndexError, AssertionError):
+    raise
 except Exception as err:
     print("** FATAL ERROR:")
     print(err)