commit fcaeca998f4a5c5b98a5bd38eb1b66924dbc64ca Author: Isis Lovecruft isis@torproject.org Date: Fri Nov 15 17:44:22 2013 +0000
Don't add the ORAddresses from a networkstatus if an exception was raised. --- lib/bridgedb/Bridges.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py index 6903ce6..59fe38b 100644 --- a/lib/bridgedb/Bridges.py +++ b/lib/bridgedb/Bridges.py @@ -513,10 +513,9 @@ def parseStatusFile(networkstatusFile): except networkstatus.ParseNetstatusError as error: logging.error(error.message) else: - - try: or_addresses[addr].add(portlist) - except KeyError: or_addresses[addr] = portlist - parsedORAddressLines += 1 + try: or_addresses[addr].add(portlist) + except KeyError: or_addresses[addr] = portlist + parsedORAddressLines += 1
elif ID and timestamp and line.startswith("s "): running, stable = networkstatus.parseSLine(line)
tor-commits@lists.torproject.org