diff --git a/googletools/__init__.py b/googletools/__init__.py index e84ea63..b4891a9 100644 --- a/googletools/__init__.py +++ b/googletools/__init__.py @@ -2,7 +2,7 @@ import setuptools, pyshorteners def shortURL(url): try: - pyshorteners.Shortener('Google', api_key=setuptools.getSetting("Google", "googl")).short(url) + return pyshorteners.Shortener('Google', api_key=setuptools.getSetting("Google", "googl")).short(url) except pyshorteners.exceptions.ShorteningErrorException as e: print("Error handling %s" % url) raise