Forráskód Böngészése

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

Keir Fraser 4 éve
szülő
commit
55325700cb
1 módosított fájl, 2 hozzáadás és 0 törlés
  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)