diff options
author | David Sommerseth <davids@redhat.com> | 2012-09-16 15:46:14 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-09-16 15:46:14 +0200 |
commit | 7e2044e1785a072b2a9d4cf14f5f0c0d9e115e0d (patch) | |
tree | 08de4bea4fc6179a3cda2226bbf3c7c565c13c50 | |
parent | 286cb5485637ff4a4a0371beb775812c0c0ef0b5 (diff) | |
download | logactio-7e2044e1785a072b2a9d4cf14f5f0c0d9e115e0d.tar.gz logactio-7e2044e1785a072b2a9d4cf14f5f0c0d9e115e0d.tar.xz logactio-7e2044e1785a072b2a9d4cf14f5f0c0d9e115e0d.zip |
Give a sensible error if an unknown reporter is found
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | LogActio/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LogActio/__init__.py b/LogActio/__init__.py index e65f12a..7aee369 100644 --- a/LogActio/__init__.py +++ b/LogActio/__init__.py @@ -233,6 +233,8 @@ class LogActio(object): reporter = __reporters[repname] except ConfigParser.NoOptionError: reporter = __reporters["Default"] + except KeyError, e: + raise Exception("No reporters are configured as '%s'" % repname) # Create a new thread which will watch this particular log file # and will use the configured reporter to handle matching events |