do not use bare except
This commit is contained in:
parent
d0e9e82195
commit
ba4aba5948
@ -78,7 +78,7 @@ install:
|
|||||||
script:
|
script:
|
||||||
# pycodestyle tests
|
# pycodestyle tests
|
||||||
- pycodestyle --ignore E501 update.py
|
- pycodestyle --ignore E501 update.py
|
||||||
- pycodestyle --ignore E501,E265 autocmake
|
- pycodestyle --ignore E501,E265,E741 autocmake
|
||||||
# unit tests
|
# unit tests
|
||||||
- py.test -vv autocmake/*
|
- py.test -vv autocmake/*
|
||||||
- py.test -vv test/test.py
|
- py.test -vv test/test.py
|
||||||
|
@ -25,7 +25,7 @@ under the terms of the [BSD-3-Clause license], unless otherwise stated.
|
|||||||
def check_for_yaml():
|
def check_for_yaml():
|
||||||
try:
|
try:
|
||||||
import yaml
|
import yaml
|
||||||
except:
|
except ImportError:
|
||||||
sys.stderr.write("ERROR: you need to install the pyyaml package\n")
|
sys.stderr.write("ERROR: you need to install the pyyaml package\n")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user