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:
parent
8024e53a68
commit
f4467ac0ed
1 changed files with 2 additions and 0 deletions
|
@ -340,6 +340,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
post_data={"url": url})
|
post_data={"url": url})
|
||||||
return page.headers["Location"]
|
return page.headers["Location"]
|
||||||
except utils.http.HTTPTimeoutException:
|
except utils.http.HTTPTimeoutException:
|
||||||
|
self.log.warn(
|
||||||
|
"HTTPTimeoutException while waiting for github short URL")
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def ping(self, event, data):
|
def ping(self, event, data):
|
||||||
|
|
Loading…
Reference in a new issue