mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-12 02:26:09 -05:00
add basic tests and fix error
This commit is contained in:

committed by
Trenton H

parent
195f3a5dbf
commit
6024a862d6
@@ -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