Mark strings as Regular Expressions (see #103)

This commit is contained in:
coderkun 2024-11-23 16:29:35 +01:00
parent 4586494f8d
commit 2b1edc715f

View file

@ -22,7 +22,7 @@ class MPDException(Exception):
def _parse_error(self, error):
if error:
parts = re.match("\[(\d+)@(\d+)\]\s\{(\w+)\}\s(.*)", error)
parts = re.match(r"\[(\d+)@(\d+)\]\s\{(\w+)\}\s(.*)", error)
if parts:
self._error_number = int(parts.group(1))
self._command_number = int(parts.group(2))