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.
pull/81/head
Adrien Vergé 7 years ago
parent 2d931b5a81
commit d422274563

@ -20,7 +20,7 @@ import sys
try:
assert sys.version_info >= (2, 7)
import unittest
except:
except AssertionError:
import unittest2 as unittest
import yaml

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

@ -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

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

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

@ -18,7 +18,7 @@ import sys
try:
assert sys.version_info >= (2, 7)
import unittest
except:
except AssertionError:
import unittest2 as unittest
import yaml

Loading…
Cancel
Save