This commit is contained in:
Luke Rogers 2014-03-06 14:02:26 +13:00
parent 141fe8d80c
commit f81cf21b57
10 changed files with 18 additions and 18 deletions

View file

@ -24,8 +24,8 @@ def sptfy(inp, sptfy=False):
link = soup.find('div', {'class': 'resultLink'}).text.strip()
return link
except:
message = "Unable to shorten URL: %s" % \
soup.find('div', {'class': 'messagebox_text'}).find('p').text.split("<br/>")[0]
message = "Unable to shorten URL: {}".format(soup.find('div', {
'class': 'messagebox_text'}).find('p').text.split("<br/>")[0])
return message
else:
return web.try_isgd(inp)