[tor-commits] [doctor/master] Error due to recent BadExit improvement
atagar at torproject.org
atagar at torproject.org
Fri Feb 26 16:40:20 UTC 2016
commit c8f4dffd016339b7119532619cce6a628fdbcbaa
Author: Damian Johnson <atagar at torproject.org>
Date: Fri Feb 26 08:43:06 2016 -0800
Error due to recent BadExit improvement
Pretty simple error that's broken a couple runs so far...
Traceback (most recent call last):
File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 813, in <module>
main()
File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 245, in main
issues += run_checks(consensuses, votes)
File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 333, in run_checks
issues = checker(latest_consensus, consensuses, votes)
File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 680, in bad_exits_in_sync
desc = votes[with_flag[0]].routers[fingerprint]
TypeError: 'set' object does not support indexing
---
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 be06cf9..b515b03 100755
--- a/consensus_health_checker.py
+++ b/consensus_health_checker.py
@@ -677,7 +677,7 @@ def bad_exits_in_sync(latest_consensus, consensuses, votes):
# than an hour then don't bother. It gets negligable traffic and is likely
# part of normal network churn.
- desc = votes[with_flag[0]].routers[fingerprint]
+ desc = votes[list(with_flag)[0]].routers[fingerprint]
if not_in_consensus and (datetime.datetime.now() - desc.published).total_seconds() > 3600:
continue
More information about the tor-commits
mailing list