refactor: amend _ERROR_PATTERN

This commit is contained in:
acgnhik 2022-08-14 19:36:55 +08:00
parent 305ec40a46
commit 63199c2ce4

View File

@ -19,7 +19,9 @@ class RemuxingProgress:
total: int
_ERROR_PATTERN = re.compile(r'\b(error|missing|invalid|corrupt)\b', re.IGNORECASE)
_ERROR_PATTERN = re.compile(
r'\b(error|missing|invalid|corrupt|illegal|overflow|out of range)\b', re.IGNORECASE
)
@attr.s(auto_attribs=True, slots=True, frozen=True)