mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
add basic tests and fix error
This commit is contained in:
parent
195f3a5dbf
commit
6024a862d6
2 changed files with 43 additions and 2 deletions
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue