Skip to content

Commit

Permalink
BUG: In get_proxyscrape_resource, type always defaults to None
Browse files Browse the repository at this point in the history
…when creating a `Proxy`. This is because the ternary expression is missing some logic.

FIX: Added `proxytype == 'all'` to ternary expression.
  • Loading branch information
colossatr0n committed Jul 21, 2019
1 parent 9e5a93d commit 5614c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxyscrape/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def func():
proxies = set()
code = None if country == 'all' else country
anonymous = anonymity in {'elite', 'anonymous'}
type = None if 'all' else proxytype
type = None if proxytype == 'all' else proxytype

for line in response.text.split():
host, port = line.split(':')
Expand Down

0 comments on commit 5614c4a

Please sign in to comment.