The line:
log.info("## {name} - {date}".format(name=event_name, date=event_date))
in otx_misp\init.py, line 230, causes ascii encoding errors for utf pulse names.
changing to:
log.info("## {name} - {date}".format(name=event_name.encode('ascii', 'backslashreplace'), date=event_date))
or something similar will fix it
Versions
otx-misp: 1.4.2
PyMISP: 2.4.82
MISP: n/a
Python (Python 2 will not be supported): n/a
Operating system: n/a
Traceback or error
Cannot import pulse Hussarini ΓÇô Targeted Cyber Attack in the Philippines: 'ascii' codec can't encode character u'\u2013' in position 10: ordinal not in range(128)
ERROR [__init__.py:216 - create_events() ] Cannot import pulse Hussarini ΓÇô Targeted Cyber Attack in the Philippines: ' ascii' codec can't encode character u'\u2013' in position 10: ordinal not in range(128)
Description
The line:
log.info("## {name} - {date}".format(name=event_name, date=event_date))
in otx_misp\init.py, line 230, causes ascii encoding errors for utf pulse names. changing to:log.info("## {name} - {date}".format(name=event_name.encode('ascii', 'backslashreplace'), date=event_date))
or something similar will fix itVersions
Traceback or error