From 616cf2bc209b5febd8bfa35c166a718249f60772 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Mon, 17 Aug 2020 16:20:34 +0800 Subject: [PATCH] fix a typo causing proxy not used --- nvchecker/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvchecker/util.py b/nvchecker/util.py index 010710a..2999ec7 100644 --- a/nvchecker/util.py +++ b/nvchecker/util.py @@ -162,7 +162,7 @@ class FunctionWorker(BaseWorker): if tries is not None: ctx_tries.set(tries) proxy = entry.get('proxy', None) - if tries is not None: + if proxy is not None: ctx_proxy.set(proxy) ua = entry.get('user_agent', None) if ua is not None: