mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05: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
@ -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…
x
Reference in New Issue
Block a user