From 8797be94576e796b409f87a84f99dc7653364332 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 20 Jun 2019 16:35:58 +0100 Subject: [PATCH] return unshortened url when shortening fails --- modules/shorturl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/shorturl.py b/modules/shorturl.py index d1be3fcd..af8f80c0 100644 --- a/modules/shorturl.py +++ b/modules/shorturl.py @@ -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):