link -> url

This commit is contained in:
jesopo 2019-04-24 15:37:14 +01:00
parent 50e3206a9f
commit cc9edc6adb

View file

@ -34,7 +34,7 @@ class Module(ModuleManager.BaseModule):
if not url:
raise utils.EventError("No URL provided/found.")
if link:
if url:
event["stdout"].write("Shortened URL: %s" % self._shortlink(url))
else:
event["stderr"].write("Unable to shorten that URL.")