Forgot to actually return the value...

This commit is contained in:
Klaus-Uwe Mitterer 2017-03-13 22:45:10 +01:00
parent 023b6fda64
commit 93168b57a7

View file

@ -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