Skip to content

Commit

Permalink
Fix BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
HanZhuoii committed Nov 22, 2020
1 parent ca865f6 commit addf31a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frame/SpiderFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ def download(self, url: str, params=None) -> str:
logger.warning(
"HTTPError with url:<{0}> retrying.....{1},{2}".format(url, i,
config.REQUEST_RETRY_TIMES))

if i == 4:
self.proxies.get_proxies()
except requests.exceptions.Timeout:
logger.warning(
"Timeout with url:<{0}> retrying.....{1},{2}".format(url, i,
Expand Down

0 comments on commit addf31a

Please sign in to comment.