mirror of https://github.com/CIRCL/lookyloo
fix: let the module figure out the mimetype for the attachment
parent
6d5c4df0d4
commit
3927b97584
|
@ -703,7 +703,7 @@ class Lookyloo():
|
||||||
msg.set_content(body)
|
msg.set_content(body)
|
||||||
try:
|
try:
|
||||||
contact_for_takedown = self.contacts(capture_uuid)
|
contact_for_takedown = self.contacts(capture_uuid)
|
||||||
msg.add_attachment(json.dumps(contact_for_takedown, indent=2), maintype='application', subtype='json', filename='contacts.json')
|
msg.add_attachment(json.dumps(contact_for_takedown, indent=2), filename='contacts.json')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.warning(f'Unable to get the contacts: {e}')
|
self.logger.warning(f'Unable to get the contacts: {e}')
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue