From 8579cbd6f8948b0072cc2f50d156227e98ce7597 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Fri, 8 Jan 2016 23:03:18 +0100 Subject: [PATCH] fix undefined variable usage and enumeration logic --- isso/dispatch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isso/dispatch.py b/isso/dispatch.py index 5ab9f72..aa71ef0 100644 --- a/isso/dispatch.py +++ b/isso/dispatch.py @@ -28,7 +28,8 @@ class Dispatcher(DispatcherMiddleware): self.isso = {} - for i, conf in enumerate(map(config.load(Dispatcher.default, conf))): + for i, path in enumerate(confs): + conf = config.load(Dispatcher.default, path) if not conf.get("general", "name"): logger.warn("unable to dispatch %r, no 'name' set", confs[i])