Commit ba2727a8 authored by Barkin Simsek's avatar Barkin Simsek 🐢
Browse files

Handle None conditions in data analyzer

parent 66f1f5e9
Pipeline #7428 passed with stages
in 2 minutes and 38 seconds
......@@ -51,6 +51,8 @@ class Analyzer:
tor = query_by_domain.filter(Fetcher.uses_tor == True).first()
non_tor = query_by_domain.filter(Fetcher.uses_tor == False).first()
if tor is not None and non_tor is not None:
exit_relay = tor.ref_relay
# Use the data for analysis
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment