ソースを参照

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)