mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
One more fix for _getLnUrl
This commit is contained in:
parent
b4580384ee
commit
4c1c5ff723
@ -193,7 +193,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp):
|
||||
|
||||
def _getLnUrl(self, url):
|
||||
try:
|
||||
return self.db.getLn(url)
|
||||
return (self.db.getLn(url), '200')
|
||||
except KeyError:
|
||||
text = webutils.getUrl('http://ln-s.net/home/api.jsp?url=%s' % url)
|
||||
(code, lnurl) = text.split(None, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user