Log a WARN when we get a HTTPTimeoutException while we're trying to get a git.io

short url (github)
This commit is contained in:
jesopo 2019-01-22 22:06:25 +00:00
parent 8024e53a68
commit f4467ac0ed

View file

@ -340,6 +340,8 @@ class Module(ModuleManager.BaseModule):
post_data={"url": url})
return page.headers["Location"]
except utils.http.HTTPTimeoutException:
self.log.warn(
"HTTPTimeoutException while waiting for github short URL")
return url
def ping(self, event, data):