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

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