mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 01:29:42 +00:00
🐛 fix abyss
command
This commit is contained in:
parent
1a8d7cd36a
commit
d861ced411
@ -36,7 +36,7 @@ def get_args(text: str) -> Tuple[int, bool, bool]:
|
|||||||
prev = "pre" in text or "上期" in text
|
prev = "pre" in text or "上期" in text
|
||||||
try:
|
try:
|
||||||
floor = 0 if total else int(re.search(r"\d+", text).group(0))
|
floor = 0 if total else int(re.search(r"\d+", text).group(0))
|
||||||
except (ValueError, IndexError):
|
except (ValueError, IndexError, AttributeError):
|
||||||
floor = 0
|
floor = 0
|
||||||
return floor, total, prev
|
return floor, total, prev
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user