Skip to content

Commit

Permalink
Merge pull request #104 from phenobarbital/modelhandler-bug
Browse files Browse the repository at this point in the history
fix when proxy_lists return empty results
  • Loading branch information
phenobarbital authored Jun 1, 2023
2 parents 36adfb8 + d989bfe commit bab502c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion proxylists/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ async def proxy_list():
proxies = []
for proxy in PROXY_LIST:
p = await proxy().get_list()
proxies = proxies + p
try:
proxies = proxies + p
except TypeError:
continue
return proxies


Expand Down
2 changes: 1 addition & 1 deletion proxylists/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__title__ = 'proxylists'
__description__ = ('Package for getting useful proxy servers, '
'can use lists like hidemy or proxydb.')
__version__ = '0.11.1'
__version__ = '0.11.3'
__author__ = 'Jesus Lara'
__author_email__ = 'jesuslarag@gmail.com'
__license__ = 'BSD'

0 comments on commit bab502c

Please sign in to comment.