From dbb0db0ec8704c38cd2109837c9fe2e51dce49d7 Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Fri, 25 Jan 2013 09:55:29 -0500 Subject: [PATCH] [bugzilla] Fix error when no domains are given for bugzilla module --- bugzilla.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bugzilla.py b/bugzilla.py index f013923f20..27014268f6 100644 --- a/bugzilla.py +++ b/bugzilla.py @@ -32,7 +32,9 @@ def setup(willie): for domain in willie.config.bugzilla.domains: regex = re.compile('%s/show_bug.cgi\?\S*?id=(\d+)' % domain) regexes.append(regex) - + else: + return + if not willie.memory.contains('url_exclude'): willie.memory['url_exclude'] = [regex] else: