[tor-commits] [sbws/master] fix: v3bwfile: Convert consensus count to string

juga at torproject.org juga at torproject.org
Thu Mar 21 18:30:42 UTC 2019


commit 702327c871c5665031f94789de89651a7598fe13
Author: juga0 <juga at riseup.net>
Date:   Mon Mar 11 13:05:10 2019 +0000

    fix: v3bwfile: Convert consensus count to string
    
    It was forgotten in #28566
---
 sbws/lib/v3bwfile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 521f304..4788840 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -483,7 +483,7 @@ class V3BWLine(object):
              if getattr(r, 'relay_in_recent_consensus_count', None)]
         if consensuses_count:
             consensus_count = max(consensuses_count)
-            kwargs['relay_in_recent_consensus_count'] = consensus_count
+            kwargs['relay_in_recent_consensus_count'] = str(consensus_count)
 
         measurements_attempts = \
             [r.relay_recent_measurement_attempt_count for r in results





More information about the tor-commits mailing list