fix: [exportpdf] None if no Galaxies bug

pull/358/head
Falconieri 2019-03-01 09:21:48 +01:00
parent a06c8cf5b8
commit e6291e71d5
1 changed files with 4 additions and 3 deletions

View File

@ -871,12 +871,13 @@ class Event_Metadata():
flowable_table.append(create_flowable_table_from_data(data))
flowable_table.append(PageBreak())
# Galaxies
item = ["Related Galaxies", 'Galaxy', "None"]
curr_Galaxy = Galaxy(self.config, self.value_formatter)
flowable_table += curr_Galaxy.get_galaxy_value(misp_event, item)
if is_safe_attribute_table(misp_event, item[1]) :
flowable_table.append(PageBreak())
curr_Galaxy = Galaxy(self.config, self.value_formatter)
flowable_table += curr_Galaxy.get_galaxy_value(misp_event, item)
return flowable_table