Преглед на файлове

Merge pull request #2819 from haberman/pythonexcept

update_failure_list.py: fixed Python "raise" statement.
Joshua Haberman преди 8 години
родител
ревизия
cad6a51a30
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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:
     for line in f:
       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())
 
 add_list = sorted(add_set, reverse=True)