mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 01:41:14 -06:00
add basic tests and fix error
This commit is contained in:
committed by
Trenton H
parent
c56da34286
commit
659883cb6f
@@ -101,13 +101,15 @@ class TagMailAction(BaseMailAction):
|
||||
raise MailError("Not a valid AppleMail tag color.")
|
||||
except Exception as e:
|
||||
raise MailError(
|
||||
"""Could not parse the parameters.
|
||||
Make sure they look like this: apple:<color>""",
|
||||
"""Could not parse parameters.
|
||||
Make sure they look like this: apple:<color> and
|
||||
only use allowed colors.""",
|
||||
) from e
|
||||
self.keyword = None
|
||||
|
||||
else:
|
||||
self.keyword = parameter
|
||||
self.color = None
|
||||
|
||||
def get_criteria(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user