do not use bare except

This commit is contained in:
Radovan Bast 2017-11-14 16:58:13 +01:00
parent d0e9e82195
commit ba4aba5948
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ install:
script:
# pycodestyle tests
- pycodestyle --ignore E501 update.py
- pycodestyle --ignore E501,E265 autocmake
- pycodestyle --ignore E501,E265,E741 autocmake
# unit tests
- py.test -vv autocmake/*
- py.test -vv test/test.py

View File

@ -25,7 +25,7 @@ under the terms of the [BSD-3-Clause license], unless otherwise stated.
def check_for_yaml():
try:
import yaml
except:
except ImportError:
sys.stderr.write("ERROR: you need to install the pyyaml package\n")
sys.exit(-1)