From b3211d1c6291514cf24457adcda0aba5d20cbf1a Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Thu, 18 Feb 2010 18:19:32 +0000 Subject: Improved message with exceptions file is not found. --- src/msec/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msec/config.py b/src/msec/config.py index e020288..3c84d1f 100644 --- a/src/msec/config.py +++ b/src/msec/config.py @@ -303,7 +303,9 @@ class ExceptionConfig: try: fd = open(self.config) except: - self.log.error(_("Unable to load configuration file %s: %s") % (self.config, sys.exc_value[1])) + # this file is optional, so if it is not found that's not fatal + self.log.info(_("loading exceptions file %s: %s") % (self.config, sys.exc_value[1])) + self.log.info(_("No exceptions loaded")) return False for line in fd.readlines(): line = line.strip() -- cgit v1.2.1