From afd8b71349270ad9a7054931cdb51fa2ff040b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 1 Dec 2016 10:26:40 +0100 Subject: [PATCH] Avoid passing None in comments --- misp_modules/modules/expansion/domaintools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/domaintools.py b/misp_modules/modules/expansion/domaintools.py index 1aeb7b6..521100e 100755 --- a/misp_modules/modules/expansion/domaintools.py +++ b/misp_modules/modules/expansion/domaintools.py @@ -61,13 +61,13 @@ class DomainTools(object): to_return = [] if self.reg_mail: for mail, comment in self.reg_mail.items(): - to_return.append({'type': ['whois-registrant-email'], 'values': [mail], 'comment': comment}) + to_return.append({'type': ['whois-registrant-email'], 'values': [mail], 'comment': comment or ''}) if self.reg_phone: for phone, comment in self.reg_phone.items(): - to_return.append({'type': ['whois-registrant-phone'], 'values': [phone], 'comment': comment}) + to_return.append({'type': ['whois-registrant-phone'], 'values': [phone], 'comment': comment or ''}) if self.reg_name: for name, comment in self.reg_name.items(): - to_return.append({'type': ['whois-registrant-name'], 'values': [name], 'comment': comment}) + to_return.append({'type': ['whois-registrant-name'], 'values': [name], 'comment': comment or ''}) if self.registrar: to_return.append({'type': ['whois-registrar'], 'values': list(self.registrar)}) if self.creation_date: