mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-16 09:11:00 +08:00
fix pylint error
This commit is contained in:
@@ -42,7 +42,7 @@ class GetData:
|
|||||||
target_path: str
|
target_path: str
|
||||||
The location where the data is saved, including the file name.
|
The location where the data is saved, including the file name.
|
||||||
"""
|
"""
|
||||||
file_name = str(target_path).split("/")[-1]
|
file_name = str(target_path).rsplit("/", maxsplit=1)[-1]
|
||||||
resp = requests.get(url, stream=True, timeout=60)
|
resp = requests.get(url, stream=True, timeout=60)
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
if resp.status_code != 200:
|
if resp.status_code != 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user