450 |
450 |
451 # if none matches, url hash is clear |
451 # if none matches, url hash is clear |
452 if not isPotentialThreat: |
452 if not isPotentialThreat: |
453 return [] |
453 return [] |
454 |
454 |
455 # if there is non-expired full hash, URL is blacklisted |
455 # if there is non-expired full hash, URL is blocked |
456 matchingExpiredThreatLists = set() |
456 matchingExpiredThreatLists = set() |
457 for threatList, hasExpired in self.__cache.lookupFullHashes(matchingFullHashes): |
457 for threatList, hasExpired in self.__cache.lookupFullHashes(matchingFullHashes): |
458 if hasExpired: |
458 if hasExpired: |
459 matchingExpiredThreatLists.add(threatList) |
459 matchingExpiredThreatLists.add(threatList) |
460 else: |
460 else: |