GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit efe2ef11 authored by Ana Custura's avatar Ana Custura

Prevent incorrectly keeping transfers for empty incl./excl. lists

parent 053da92c
......@@ -79,10 +79,10 @@ class Filtering(object):
fingerprint_match = self.fingerprint_pattern.match(long_name)
if fingerprint_match:
fingerprint = fingerprint_match.group(1).upper()
if self.fingerprints_to_include and fingerprint not in self.fingerprints_to_include:
if self.fingerprints_to_include is not None and fingerprint not in self.fingerprints_to_include:
keep = False
break
if self.fingerprints_to_exclude and fingerprint in self.fingerprints_to_exclude:
if self.fingerprints_to_exclude is not None and fingerprint in self.fingerprints_to_exclude:
keep = False
break
if keep:
......
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