Mark strings as Regular Expressions (see #103)
This commit is contained in:
parent
4586494f8d
commit
2b1edc715f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue