Show an error if no configuration file could be found.

This commit is contained in:
Albert Cervera i Areny 2019-05-30 18:01:13 +02:00
parent aa8132c767
commit a813ef4713

View file

@ -254,6 +254,9 @@ if not args.config:
logger.info('Checking %s...' % config_file)
if os.path.exists(config_file):
break
if not config_file:
logger.info('Not found file %s' % config_file)
sys.exit(1)
logger.info("Configuration file: %s" % config_file)
else:
config_file = args.config