# HG changeset patch # User Andrey Skvortsov # Date 1507632553 -10800 # Node ID 410a3bcbeb29a628f1d8e6f97683aa09e4c98528 # Parent 4eeddef7f9737d0542a31c7ca91a7d9b5d9b2b3b fix pylint warning '(misplaced-bare-raise) The raise statement is not inside an except clause' diff -r 4eeddef7f973 -r 410a3bcbeb29 ProjectController.py --- a/ProjectController.py Tue Oct 10 13:43:55 2017 +0300 +++ b/ProjectController.py Tue Oct 10 13:49:13 2017 +0300 @@ -1170,7 +1170,7 @@ # Do generate code = generator() if code is None: - raise + raise Exception code_path = os.path.join(buildpath, filename) open(code_path, "w").write(code) # Insert this file as first file to be compiled at root confnode diff -r 4eeddef7f973 -r 410a3bcbeb29 tests/tools/check_source.sh --- a/tests/tools/check_source.sh Tue Oct 10 13:43:55 2017 +0300 +++ b/tests/tools/check_source.sh Tue Oct 10 13:49:13 2017 +0300 @@ -238,6 +238,7 @@ enable=$enable,W0406 # (import-self) Module import itself enable=$enable,C0413 # (wrong-import-position) Import "import X" should be placed at the top of the module enable=$enable,E1305 # (too-many-format-args) Too many arguments for format string + enable=$enable,E0704 # (misplaced-bare-raise) The raise statement is not inside an except clause # enable= options=