style: Fix E722 errors reported by pycodestyle

Since a few days ago pycodestyle (formerly called pep8) has a new check:
E722 warning for bare except clauses.

Let's fix our code.
This commit is contained in:
Adrien Vergé
2017-10-27 17:18:32 +02:00
parent 2d931b5a81
commit d422274563
6 changed files with 6 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ import sys
try:
assert sys.version_info >= (2, 7)
import unittest
except:
except AssertionError:
import unittest2 as unittest
from yamllint import cli