commit 36af115dd5aef145c1fdd4d4db75eca86ad7f635 Author: Matthew Finkel Matthew.Finkel@gmail.com Date: Sat Feb 1 22:46:19 2014 +0000
We need the ORPort to be an int, convert it from the get-go --- lib/bridgedb/parse/networkstatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/parse/networkstatus.py b/lib/bridgedb/parse/networkstatus.py index 0b73569..9304009 100644 --- a/lib/bridgedb/parse/networkstatus.py +++ b/lib/bridgedb/parse/networkstatus.py @@ -132,7 +132,7 @@ def parseRLine(line): timestamp = time.mktime(time.strptime(" ".join(fields[3:5]), "%Y-%m-%d %H:%M:%S")) ORaddr = fields[5] - ORport = fields[6] + ORport = int(fields[6]) dirport = fields[7] except InvalidBase64 as error: logging.error(error)
tor-commits@lists.torproject.org