This commit is contained in:
g1879 2020-12-02 17:55:32 +08:00
parent c97e4bc37a
commit 237ed9607e

View File

@ -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.'