提交 64102c04 编写于 作者: H HexToString

add no fetch

上级 bd266f75
......@@ -257,12 +257,12 @@ class HttpClient(object):
fetch_list = []
if isinstance(fetch, str):
fetch_list = [fetch]
elif isinstance(fetch, list):
elif isinstance(fetch, (list, tuple)):
fetch_list = fetch
elif fetch == None:
pass
else:
raise ValueError("Fetch only accepts string or list of string")
raise ValueError("Fetch only accepts string/list/tuple of string")
fetch_names = []
for key in fetch_list:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册