[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torflow/master 84/92] snakeinspector: Check that finish_timestamp has a value before filtering by it



Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Mon, 16 Aug 2010 23:22:11 -0400
Subject: snakeinspector: Check that finish_timestamp has a value before filtering by it
Commit: 515c7e9b92dfd099688b4cfc48304d2578d2663f

---
 NetworkScanners/ExitAuthority/snakeinspector.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/snakeinspector.py b/NetworkScanners/ExitAuthority/snakeinspector.py
index a03394c..06089e4 100755
--- a/NetworkScanners/ExitAuthority/snakeinspector.py
+++ b/NetworkScanners/ExitAuthority/snakeinspector.py
@@ -198,8 +198,8 @@ def main(argv):
     if r.reason in conf.noreasons: continue
     if conf.reasons and r.reason not in conf.reasons: continue
     if r.timestamp < conf.after or conf.before < r.timestamp: continue
-    if r.finish_timestamp < conf.finishedafter: continue
-    if conf.finishedbefore < r.finish_timestamp: continue
+    if r.finish_timestamp and r.finish_timestamp < conf.finishedafter: continue
+    if r.finish_timestamp and conf.finishedbefore < r.finish_timestamp: continue
     if (conf.falsepositives) ^ r.false_positive: continue
     if conf.confirmed != r.confirmed: continue
     if r.site_result_rate[1] != 0 and \
-- 
1.7.1