From 93168b57a792b5112be1a8bc506d6cf113dbc802 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 13 Mar 2017 22:45:10 +0100 Subject: [PATCH] Forgot to actually return the value... --- googletools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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