test: 修复单测 warnings 并精确忽略上游弃用告警 (#5889)

This commit is contained in:
InfinityPacer
2026-06-03 18:34:45 +08:00
committed by GitHub
parent 791f1fe4ac
commit 781b1ce2aa
4 changed files with 21 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ class NexusPhpSiteUserInfo(SiteParserBase):
has_ucoin, self.bonus = self._parse_ucoin(html)
if has_ucoin:
return
tmps = html.xpath('//a[contains(@href,"mybonus")]/text()') if html else None
tmps = html.xpath('//a[contains(@href,"mybonus")]/text()') if html is not None else None
if tmps:
bonus_text = str(tmps[0]).strip()
bonus_match = re.search(r"([\d,.]+)", bonus_text)