mirror of
https://github.com/NaN-tic/tryton-upgrades.git
synced 2023-12-14 03:32:55 +01:00
Show an error if no configuration file could be found.
This commit is contained in:
parent
aa8132c767
commit
a813ef4713
3
upgrade
3
upgrade
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue