kill %s
This commit is contained in:
parent
141fe8d80c
commit
f81cf21b57
10 changed files with 18 additions and 18 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue