Fixed issue with url shorteners. Should help to fix #159

This commit is contained in:
2017-09-17 23:28:31 -05:00
parent d333b5f5c3
commit da06c568c5
3 changed files with 3 additions and 9 deletions

View File

@@ -20,8 +20,4 @@ class URLShortener (object):
raise NotImplementedError
def unshorten(self, url):
try:
r=requests.get(url)
return r.url
except:
return url #we cannot expand
return url