mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
c97e4bc37a
commit
237ed9607e
@ -387,7 +387,7 @@ class SessionPage(object):
|
|||||||
print(f'Downloading to: {goal_path}')
|
print(f'Downloading to: {goal_path}')
|
||||||
|
|
||||||
if skip:
|
if skip:
|
||||||
print('Skipped.')
|
print('Skipped.\n')
|
||||||
|
|
||||||
# -------------------开始下载-------------------
|
# -------------------开始下载-------------------
|
||||||
if skip:
|
if skip:
|
||||||
@ -456,7 +456,7 @@ class SessionPage(object):
|
|||||||
:param kwargs: 其它参数
|
:param kwargs: 其它参数
|
||||||
:return: tuple,第一位为Response或None,第二位为出错信息或'Sussess'
|
:return: tuple,第一位为Response或None,第二位为出错信息或'Sussess'
|
||||||
"""
|
"""
|
||||||
if not str:
|
if not url:
|
||||||
if show_errmsg:
|
if show_errmsg:
|
||||||
raise ValueError('url is empty.')
|
raise ValueError('url is empty.')
|
||||||
return None, 'url is empty.'
|
return None, 'url is empty.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user