Specify ImportError to see other errors

This commit is contained in:
mrg 2021-04-22 16:13:32 -07:00
parent 01f4ad7a11
commit d018963866
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ def read_config(config_file, is_unit_test=True):
debug.info(1, "Configuration file is " + config_file + ".py") debug.info(1, "Configuration file is " + config_file + ".py")
try: try:
config = importlib.import_module(module_name) config = importlib.import_module(module_name)
except: except ImportError:
debug.error("Unable to read configuration file: {0}".format(config_file), 2) debug.error("Unable to read configuration file: {0}".format(config_file), 2)
OPTS.overridden = {} OPTS.overridden = {}