fix: Python < 3.6 support

pull/422/head
Raphaël Vinot 2019-07-18 14:16:18 +02:00
parent 9d0be8d3f0
commit 4ade9b8130
1 changed files with 2 additions and 2 deletions

View File

@ -727,7 +727,7 @@ class MISPEvent(AbstractMISP):
try:
from .tools import make_binary_objects
except ImportError as e:
logger.info(f'Unable to load make_binary_objects: {e}')
logger.info('Unable to load make_binary_objects: {}'.format(e))
continue
file_object, bin_type_object, bin_section_objects = make_binary_objects(pseudofile=attribute.malware_binary, filename=attribute.malware_filename)
self.add_object(file_object)
@ -738,7 +738,7 @@ class MISPEvent(AbstractMISP):
self.add_object(bin_section_object)
self.attributes.pop(index)
else:
logger.warning(f'No expansions for this data type ({attribute.type}). Open an issue if needed.')
logger.warning('No expansions for this data type ({}). Open an issue if needed.'.format(attribute.type))
def __repr__(self):
if hasattr(self, 'info'):