Print a warning if the configuration file is not found

This commit is contained in:
Guillaume Ayoub 2013-06-04 16:00:46 +03:00
parent 847235f6e7
commit 61d063c610

View File

@ -85,7 +85,9 @@ def run():
# Read in the configuration specified by the command line (if specified)
if options.config:
config.read(options.config)
if not config.read(options.config):
log.LOGGER.warning(
"Configuration file '%s' not found" % options.config)
# Update Radicale configuration according to options
for option in parser.option_list: