[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Don't add the ORAddresses from a networkstatus if an exception was raised.
commit fcaeca998f4a5c5b98a5bd38eb1b66924dbc64ca
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits