From 879dbb4bdfe5320e413f6543aecb8b26d109aff3 Mon Sep 17 00:00:00 2001 From: inji-hanbin Date: Tue, 2 Mar 2021 17:54:11 +0800 Subject: [PATCH] ssl error update --- qiniu/region.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiniu/region.py b/qiniu/region.py index f143795b..049079de 100644 --- a/qiniu/region.py +++ b/qiniu/region.py @@ -163,6 +163,6 @@ def host_cache_to_file(self, home_dir): def bucket_hosts(self, ak, bucket): url = "{0}/v1/query?ak={1}&bucket={2}".format(UC_HOST, ak, bucket) - ret = requests.get(url) + ret = requests.get(url, verify=False) data = compat.json.dumps(ret.json(), separators=(',', ':')) return data