mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06: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:
		@@ -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):
 | 
			
		||||
        """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user