From 58a857380dec44ee51f0bab5a0140d7c68426c89 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 2 Aug 2013 12:30:16 +1200 Subject: [PATCH] Made fact.py use web.try_isgd() --- plugins/fact.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/fact.py b/plugins/fact.py index 6ca9a64..20d9dd1 100755 --- a/plugins/fact.py +++ b/plugins/fact.py @@ -32,9 +32,6 @@ def fact(inp, say=False, nick=False): attempts += 1 continue - try: - url = web.isgd(link) - except (web.ShortenError, http.HTTPError): - url = link + url = web.try_isgd(link) return "%s - %s" % (fact, url)