Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Program crashes on some inputs #6

Open
@1Hyena

Description

Getting the below error

Traceback (most recent call last):
  File "/usr/bin/nostril", line 25, in <module>
    plac.call(main)
  File "/usr/lib/python3.7/site-packages/plac_core.py", line 330, in call
    cmd, result = parser.consume(arglist)
  File "/usr/lib/python3.7/site-packages/plac_core.py", line 207, in consume
    return cmd, self.func(*(args + varargs + extraopts), **kwargs)
  File "/usr/lib/python3.7/site-packages/nostril/__main__.py", line 83, in main
    analyze(strings, trace)
  File "/usr/lib/python3.7/site-packages/nostril/__main__.py", line 95, in analyze
    'nonsense' if nonsense(s) else 'real'))
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 906-917: surrogates not allowed

when trying to detect gibberish from user-generated content.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions