mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 13:01:07 -05:00
Wikifetch: add a three second timeout in fetch
This commit is contained in:
parent
2fbfc37f98
commit
a9dfb1009d
@ -96,7 +96,7 @@ class Wikifetch(callbacks.Plugin):
|
||||
self.log.debug('Wikifetch: using URL %s', addr)
|
||||
|
||||
try:
|
||||
article = utils.web.getUrl(addr)
|
||||
article = utils.web.getUrl(addr, timeout=3)
|
||||
except utils.web.Error:
|
||||
self.log.exception('Failed to fetch link %s', addr)
|
||||
raise
|
||||
|
Loading…
x
Reference in New Issue
Block a user