Skip to content

Commit

Permalink
[url] Fix undefined variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ari-koivula committed Jun 27, 2013
1 parent 29a17f5 commit f1ca3f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions url.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from htmlentitydefs import name2codepoint
from willie import web, tools
from willie.module import commands, rule
import urllib2
import urlparse

url_finder = None
Expand Down Expand Up @@ -46,7 +45,7 @@ def setup(bot):
global url_finder, exclusion_char
if bot.config.has_option('url', 'exclude'):
regexes = [re.compile(s) for s in
bot.config.url.get_list(exclude)]
bot.config.url.get_list(bot.config.exclude)]
else:
regexes = []

Expand Down

0 comments on commit f1ca3f0

Please sign in to comment.