Fix bug where no content-type is provided in a message part

This commit is contained in:
2021-10-04 21:34:53 -04:00
parent 75a0fbd508
commit 8a5ec96d79

View File

@@ -122,6 +122,10 @@ def receive_report(args):
for part in msg.walk():
# check for zip file
content_type = part['content-type']
if content_type is None:
continue
if content_type.find(';') != -1:
content_type = content_type.split(';',1)[0]