Wikifetch: add a three second timeout in fetch

This commit is contained in:
James Lu 2017-02-04 18:28:11 -08:00
parent 2fbfc37f98
commit a9dfb1009d

View File

@ -96,7 +96,7 @@ class Wikifetch(callbacks.Plugin):
self.log.debug('Wikifetch: using URL %s', addr) self.log.debug('Wikifetch: using URL %s', addr)
try: try:
article = utils.web.getUrl(addr) article = utils.web.getUrl(addr, timeout=3)
except utils.web.Error: except utils.web.Error:
self.log.exception('Failed to fetch link %s', addr) self.log.exception('Failed to fetch link %s', addr)
raise raise