Explorar o código

update_failure_list.py: fixed Python "raise" statement.

Josh Haberman %!s(int64=8) %!d(string=hai) anos
pai
achega
3e6245e5d7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      conformance/update_failure_list.py

+ 1 - 1
conformance/update_failure_list.py

@@ -57,7 +57,7 @@ for remove_file in (args.remove_list or []):
   with open(remove_file) as f:
   with open(remove_file) as f:
     for line in f:
     for line in f:
       if line in add_set:
       if line in add_set:
-        raise "Asked to both add and remove test: " + line
+        raise Exception("Asked to both add and remove test: " + line)
       remove_set.add(line.strip())
       remove_set.add(line.strip())
 
 
 add_list = sorted(add_set, reverse=True)
 add_list = sorted(add_set, reverse=True)