One more fix for _getLnUrl

This commit is contained in:
James Vega 2004-10-04 18:45:20 +00:00
parent b4580384ee
commit 4c1c5ff723

View File

@ -193,7 +193,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp):
def _getLnUrl(self, url): def _getLnUrl(self, url):
try: try:
return self.db.getLn(url) return (self.db.getLn(url), '200')
except KeyError: except KeyError:
text = webutils.getUrl('http://ln-s.net/home/api.jsp?url=%s' % url) text = webutils.getUrl('http://ln-s.net/home/api.jsp?url=%s' % url)
(code, lnurl) = text.split(None, 1) (code, lnurl) = text.split(None, 1)