fix a typo causing proxy not used

This commit is contained in:
lilydjwg 2020-08-17 16:20:34 +08:00
parent 10f6b1561e
commit 616cf2bc20
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class FunctionWorker(BaseWorker):
if tries is not None: if tries is not None:
ctx_tries.set(tries) ctx_tries.set(tries)
proxy = entry.get('proxy', None) proxy = entry.get('proxy', None)
if tries is not None: if proxy is not None:
ctx_proxy.set(proxy) ctx_proxy.set(proxy)
ua = entry.get('user_agent', None) ua = entry.get('user_agent', None)
if ua is not None: if ua is not None: