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