diff --git a/.travis.yml b/.travis.yml index 8827ddbb..06a155b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ install: - pip install -q -r requirements-testing.txt before_script: - - "pycodestyle --exclude=migrations --ignore=E501 helpdesk" + - "pycodestyle --exclude=migrations --ignore=E501,W503,W504 helpdesk" script: - coverage run --source='.' quicktest.py helpdesk diff --git a/helpdesk/management/commands/get_email.py b/helpdesk/management/commands/get_email.py index f9fb7392..5ae13079 100755 --- a/helpdesk/management/commands/get_email.py +++ b/helpdesk/management/commands/get_email.py @@ -332,7 +332,7 @@ def ticket_from_message(message, queue, logger): return False return True - matchobj = re.match(r".*\[" + queue.slug + "-(?P\d+)\]", subject) + matchobj = re.match(r".*\[" + queue.slug + r"-(?P\d+)\]", subject) if matchobj: # This is a reply or forward. ticket = matchobj.group('id')