mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
SpiffyTitles: Avoid urlRegularExpression error.
This commit is contained in:
parent
01f0fac281
commit
b1463364aa
@ -559,7 +559,10 @@ class SpiffyTitles(callbacks.Plugin):
|
||||
"""
|
||||
Find the first string that looks like a URL from the message
|
||||
"""
|
||||
url_re = self.registryValue("urlRegularExpression", channel)
|
||||
try:
|
||||
url_re = self.registryValue("urlRegularExpression", channel)
|
||||
except NonExistentRegistryEntry:
|
||||
url_re = self.registryValue("urlRegularExpression")
|
||||
if not url_re:
|
||||
url_re = utils.web._httpUrlRe
|
||||
matches = re.findall(url_re, input)
|
||||
|
Loading…
x
Reference in New Issue
Block a user