Explorar o código

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

Keir Fraser %!s(int64=4) %!d(string=hai) anos
pai
achega
55325700cb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)