fix
This commit is contained in:
parent
934d753778
commit
0065647567
@ -65,6 +65,8 @@ class htmlUtils:
|
||||
url_text = cls.getPathSaveHtml(curl,"read")
|
||||
except:
|
||||
url_text = None
|
||||
if url_text != None and not update:
|
||||
return html.fromstring(url_text)
|
||||
while url_text == None or update:
|
||||
if count <= 5:
|
||||
try:
|
||||
@ -95,7 +97,7 @@ class htmlUtils:
|
||||
ntfy.sendMsg(f"fail 请求失败:{curl}")
|
||||
exit()
|
||||
break
|
||||
return html.fromstring(url_text)
|
||||
return url_text
|
||||
|
||||
@classmethod
|
||||
def getBytes(cls, url):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user