mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	fixup: break up complex if condition
This commit is contained in:
		@@ -75,9 +75,11 @@ class Message(Loggable):
 | 
				
			|||||||
                continue
 | 
					                continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            dispositions = content_disposition.strip().split(";")
 | 
					            dispositions = content_disposition.strip().split(";")
 | 
				
			||||||
            if len(dispositions) < 2 or \
 | 
					            if len(dispositions) < 2:
 | 
				
			||||||
               (not dispositions[0].lower() == "attachment" and
 | 
					                continue
 | 
				
			||||||
               "filename" not in dispositions[1].lower()):
 | 
					
 | 
				
			||||||
 | 
					            if not dispositions[0].lower() == "attachment" and \
 | 
				
			||||||
 | 
					               "filename" not in dispositions[1].lower():
 | 
				
			||||||
                continue
 | 
					                continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            file_data = part.get_payload()
 | 
					            file_data = part.get_payload()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user