diff --git a/.travis.yml b/.travis.yml index 76d34b5..84bcef1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/update.py b/update.py index 70f6917..66ad713 100644 --- a/update.py +++ b/update.py @@ -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)