increase interval for up-to-date check (to 1 minute) after error, to avoid continuous flood in log on further possible errors

pull/3955/head
sebres 2025-03-04 00:07:31 +01:00
parent 9145db8de3
commit e3ab969047
1 changed files with 1 additions and 0 deletions

View File

@ -793,6 +793,7 @@ class FileIPAddrSet(IPAddrSet):
ips = splitwords(ips, ignoreComments=True)
self.set(ips)
except Exception as e: # pragma: no cover
self._nextCheck += 60; # increase interval to check (to 1 minute, to avoid log flood on errors)
if not noError: raise e
logSys.warning("Retrieving IPs set from %r failed: %s", self.fileName, e)