Join GitHub today
wrap bare str raises with generic Exception() #2421
The probable cause is that Python 2.7 does not support raising bare str exceptions anymore.
We might want to backport this to 16.04? Maybe just part of it that affects live code.
Found as a part of #2419
May 26, 2016
4 checks passed
The answer to why the linting doesn't catch it is because it is a type error and not a syntax problem I guess. The syntax for exception statements is probably something like: