Avoid a comment set to NoneNone

Fix https://github.com/MISP/misp-modules/issues/127
pull/98/head
Raphaël Vinot 2017-07-12 12:12:35 +02:00
parent e96f540041
commit d0eb1252ae
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def extract_field(report, field_name):
data = report.find(field_name.lower()) data = report.find(field_name.lower())
if data and hasattr(data, 'text'): if data and hasattr(data, 'text'):
return data.text return data.text
return None return ''
def load_openioc_file(openioc_path): def load_openioc_file(openioc_path):