🐛 fix abyss command

This commit is contained in:
Nahida 2023-10-20 07:23:10 +08:00 committed by 洛水居室
parent 1a8d7cd36a
commit d861ced411
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -36,7 +36,7 @@ def get_args(text: str) -> Tuple[int, bool, bool]:
prev = "pre" in text or "上期" in text
try:
floor = 0 if total else int(re.search(r"\d+", text).group(0))
except (ValueError, IndexError):
except (ValueError, IndexError, AttributeError):
floor = 0
return floor, total, prev