mirror of https://github.com/fail2ban/fail2ban
fixed typo in pragma-comment
parent
20fffc44c1
commit
6dc9c23a25
|
@ -680,7 +680,7 @@ class LogCaptureTestCase(unittest.TestCase):
|
||||||
return self._val
|
return self._val
|
||||||
# try to lock, if not possible - return cached/empty (max 5 times):
|
# try to lock, if not possible - return cached/empty (max 5 times):
|
||||||
lck = self._lock.acquire(False)
|
lck = self._lock.acquire(False)
|
||||||
if not lck: # pargma: no cover (may be too sporadic on slow systems)
|
if not lck: # pragma: no cover (may be too sporadic on slow systems)
|
||||||
self._nolckCntr += 1
|
self._nolckCntr += 1
|
||||||
if self._nolckCntr <= 5:
|
if self._nolckCntr <= 5:
|
||||||
return self._val if self._val is not None else ''
|
return self._val if self._val is not None else ''
|
||||||
|
|
Loading…
Reference in New Issue