From 61d063c6102dba228b060e3e6b6790397aef78be Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 4 Jun 2013 16:00:46 +0300 Subject: [PATCH] Print a warning if the configuration file is not found --- radicale/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radicale/__main__.py b/radicale/__main__.py index 0bf4160..ebddbc1 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -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: