mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
Fixed issue with url shorteners. Should help to fix #159
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user