Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

branch
Py2 comp.
changeset 3178
f25fc1364c88
parent 3161
06f57a834adf
parent 3171
2c37b9a37b2d
child 3456
96232974dcdb
diff -r 06f57a834adf -r f25fc1364c88 Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Wed Jan 01 14:39:32 2014 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sun Jan 05 23:22:17 2014 +0100
@@ -50,6 +50,8 @@
             brackets (boolean)
         @keyparam docType type of the documentation strings
             (string, one of 'eric' or 'pep257')
+        @exception AssertionError raised if the docType argument is not
+            "eric" or "pep257"
         """
         assert docType in ("eric", "pep257")
         
@@ -107,6 +109,10 @@
                     index += 1
                     break
                 
+                if output[index] == "EXCEPTION":
+                    exceptionText = os.linesep.join(output[index + 2:])
+                    raise RuntimeError(exceptionText)
+                
                 fname = output[index + 1]
                 lineno = int(output[index + 2])
                 position = int(output[index + 3])

eric ide

mercurial