Made fact.py use web.try_isgd()
This commit is contained in:
parent
fb2b5fc26e
commit
58a857380d
1 changed files with 1 additions and 4 deletions
|
@ -32,9 +32,6 @@ def fact(inp, say=False, nick=False):
|
||||||
attempts += 1
|
attempts += 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
url = web.try_isgd(link)
|
||||||
url = web.isgd(link)
|
|
||||||
except (web.ShortenError, http.HTTPError):
|
|
||||||
url = link
|
|
||||||
|
|
||||||
return "%s - %s" % (fact, url)
|
return "%s - %s" % (fact, url)
|
||||||
|
|
Reference in a new issue