return unshortened url when shortening fails

This commit is contained in:
jesopo 2019-06-20 16:35:58 +01:00
parent b6e194a450
commit 8797be9457

View file

@ -22,6 +22,7 @@ class Module(ModuleManager.BaseModule):
if page and page.data["data"]:
return page.data["data"]["url"]
return url
@utils.hook("received.command.shorten")
def shorten(self, event):