[fix] 修复pushUrl未配置相关Secrets报错

之前的修复版本未考虑充分,这次从yml中进行空值判断
This commit is contained in:
Ghlerrix
2023-09-02 15:42:20 +08:00
parent 22308fd069
commit 21f92b5491

View File

@@ -19,8 +19,6 @@ def parse_stiemap(site):
try:
result = requests.get(site)
big = re.findall('<loc>(.*?)</loc>', result.content.decode('utf-8'), re.S)
print('当前已有url:')
print(list(big))
return list(big)
except:
print('请检查你的url是否有误。')