diff --git a/lib/unshortenit.py b/lib/unshortenit.py index ba8f3479..ccc92ac1 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -59,6 +59,7 @@ class UnshortenIt(object): def unshorten(self, uri, type=None): code = 0 while True: + uri = uri.strip() oldUri = uri domain = urlsplit(uri).netloc if not domain: