mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
Set default empty PAPERLESS_EMAIL_SECRET
Previously, if the user didn't set PAPERLESS_EMAIL_SECRET, Paperless failed with an error in check_body() because self.SECRET was None.
This commit is contained in:
parent
aa2fc84d7f
commit
4babfa1a5b
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class Message(Loggable):
|
|||
and n attachments, and that we don't care about the message body.
|
||||
"""
|
||||
|
||||
SECRET = os.getenv("PAPERLESS_EMAIL_SECRET")
|
||||
SECRET = os.getenv("PAPERLESS_EMAIL_SECRET", "")
|
||||
|
||||
def __init__(self, data, group=None):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue