This commit is contained in:
g1879 2021-08-07 17:33:05 +00:00 committed by Gitee
parent 546a695019
commit 530598ed58

View File

@ -69,7 +69,7 @@ class SessionPage(object):
@property @property
def html(self) -> str: def html(self) -> str:
"""返回页面html文本""" """返回页面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]: def get_cookies(self, as_dict: bool = False, all_domains: bool = False) -> Union[dict, list]:
"""返回cookies \n """返回cookies \n