block_mirror: handle proxies with no url yet
This commit is contained in:
parent
3d0fe913e9
commit
2f3feca27a
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class BlockMirrorAutomation(BaseAutomation):
|
||||||
self.parse()
|
self.parse()
|
||||||
logging.debug("Parse complete")
|
logging.debug("Parse complete")
|
||||||
rotated = []
|
rotated = []
|
||||||
proxy_urls = active_proxy_urls()
|
proxy_urls = list(filter(lambda u: u is not None, active_proxy_urls()))
|
||||||
for pattern in self.patterns:
|
for pattern in self.patterns:
|
||||||
blocked_urls = fnmatch.filter(proxy_urls, pattern)
|
blocked_urls = fnmatch.filter(proxy_urls, pattern)
|
||||||
for blocked_url in blocked_urls:
|
for blocked_url in blocked_urls:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue