[tor-commits] [doctor/master] Syntax error
atagar at torproject.org
atagar at torproject.org
Tue May 9 17:07:17 UTC 2017
commit d8f4d7a087c9f0c929e54fafe535e48bb7b684a5
Author: Damian Johnson <atagar at torproject.org>
Date: Tue May 9 10:14:56 2017 -0700
Syntax error
Stupid me, missing a bracket. Would be nice if we had a test suite for these... :/
---
consensus_health_checker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consensus_health_checker.py b/consensus_health_checker.py
index 9fa1dc7..1e46b72 100755
--- a/consensus_health_checker.py
+++ b/consensus_health_checker.py
@@ -787,7 +787,7 @@ def shared_random_commit_partitioning(latest_consensus, consensuses, votes):
for authority, vote in votes.items():
for commitment in vote.directory_authorities[0].shared_randomness_commitments:
- if commitment.identity not in self_commitments[commitment.identity:
+ if commitment.identity not in self_commitments[commitment.identity]:
pass # we didn't get a vote for this authority so we don't know its self-reported commitment
elif commitment.commit != self_commitments[commitment.identity]:
issues.append(Issue(Runlevel.WARNING, 'SHARED_RANDOM_COMMITMENT_MISMATCH', authority = authority, their_v3ident = commitment.identity, our_value = commitment.commit, their_value = self_commitments[commitment.identity], to = [authority]))
More information about the tor-commits
mailing list