From 9c58d8d610a7aa058f6e66773f96d3846bf0f762 Mon Sep 17 00:00:00 2001 From: Jonathan Michalon Date: Sun, 31 Aug 2014 21:25:46 +0200 Subject: [PATCH] Fix error message display when config module loading fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code was moved recently to be accessible by the watchdog but a variable name was not changed… --- picomon/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picomon/__main__.py b/picomon/__main__.py index f60be90..2e27b49 100644 --- a/picomon/__main__.py +++ b/picomon/__main__.py @@ -88,7 +88,7 @@ def import_config(configfile): import_module(base) except ImportError as e: logging.critical("Cannot load config from '%s': %s" % ( - args.config, str(e))) + configfile, str(e))) sys.exit(1) -- GitLab