Skip to content

Commit

Permalink
[bugzilla] Fix error when no domains are given for bugzilla module
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Jan 25, 2013
1 parent 2ce5050 commit dbb0db0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dbb0db0

Please sign in to comment.