One more fix for _getLnUrl

This commit is contained in:
James Vega 2004-10-04 18:45:20 +00:00
parent b4580384ee
commit 4c1c5ff723
1 changed files with 1 additions and 1 deletions

View File

@ -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)