Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging causes create_events to fail on non-ascii pulse names #26

Open
griffisc opened this issue Jul 26, 2018 · 0 comments
Open

Logging causes create_events to fail on non-ascii pulse names #26

griffisc opened this issue Jul 26, 2018 · 0 comments

Comments

@griffisc
Copy link

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 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant