commit 1ed50eb69d1e56f4f65857a8c4a5f0aa14836355 Author: Karsten Loesing <karsten.loes...@gmx.net> Date: Sat Aug 25 09:56:16 2012 +0200
Fix output of relays with missing country/AS info. --- compass.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compass.py b/compass.py index 7da2a67..a3bdd9c 100755 --- a/compass.py +++ b/compass.py @@ -248,9 +248,9 @@ class RelayStats(object): fingerprint = relay['fingerprint'] if not links else "https://atlas.torproject.org/#details/%s" % relay['fingerprint'] exit = 'Exit' if 'Exit' in set(relay['flags']) else '-' guard = 'Guard' if 'Guard' in set(relay['flags']) else '-' - country = relay.get('country', '') - as_number = relay.get('as_number', '') - as_name = relay.get('as_name', '') + country = relay.get('country', '??') + as_number = relay.get('as_number', '??') + as_name = relay.get('as_name', '??') relays_in_group += 1 if by_country or by_as_number: nickname = "(%d relays)" % relays_in_group _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits