mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
practracker: An exception is "used" even when it is violated.
The purpose of tracking whether an exception is used is so that we can tell whether it is overbroad. This means that an _underbroad_ exception is still a used one. Fixes bug 31338.
This commit is contained in:
parent
25d55fa01e
commit
d1ffac3f8a
@ -77,7 +77,9 @@ class ProblemVault(object):
|
||||
# (e.g. we went from 4k LoC to 3k LoC), but we do warn if the
|
||||
# situation worsened (e.g. we went from 60 includes to 80).
|
||||
status = problem.is_worse_than(self.exceptions[problem.key()])
|
||||
if status == STATUS_OK:
|
||||
|
||||
# Remember that we used this exception, so that we can later
|
||||
# determine whether the exception was overbroad.
|
||||
self.used_exception_for[problem.key()] = problem
|
||||
|
||||
return status
|
||||
|
Loading…
Reference in New Issue
Block a user