Do not crash if config_file is None.

This commit is contained in:
Albert Cervera i Areny 2019-02-01 23:09:40 +01:00
parent df92f0b7d8
commit 7e9671d89e

View file

@ -245,6 +245,8 @@ if not args.config:
os.environ.get('TRYTOND_CONFIG'),
)
for config_file in paths:
if not config_file:
continue
print 'Checking %s...' % config_file
if os.path.exists(config_file):
break