mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
546a695019
commit
530598ed58
@ -69,7 +69,7 @@ class SessionPage(object):
|
||||
@property
|
||||
def html(self) -> str:
|
||||
"""返回页面html文本"""
|
||||
return format_html(self.response.text)
|
||||
return format_html(self.response.text) if self.response else ''
|
||||
|
||||
def get_cookies(self, as_dict: bool = False, all_domains: bool = False) -> Union[dict, list]:
|
||||
"""返回cookies \n
|
||||
|
Loading…
x
Reference in New Issue
Block a user