Set Timeout at urlopen to 3 seconds

pull/1203/head^2^2
M. Maraun 10 years ago
parent cf3a1c15a0
commit 6d72602f6b

@ -71,6 +71,7 @@ kojiro
Lars Kneschke
Lee Clemens
leftyfb (Mike Rushton)
M. Maraun
Manuel Arostegui Ramirez
Marcel Dopita
Mark Edgington

@ -116,7 +116,7 @@ class BadIPsAction(ActionBase):
"""
try:
response = urlopen(
self._Request("/".join([self._badips, "get", "categories"])))
self._Request("/".join([self._badips, "get", "categories"])), None, 3)
except HTTPError as response:
messages = json.loads(response.read().decode('utf-8'))
self._logSys.error(

Loading…
Cancel
Save