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

Bellybutton breaks on non-ascii characters in source #22

Open
hchasestevens opened this issue Mar 21, 2019 · 0 comments
Open

Bellybutton breaks on non-ascii characters in source #22

hchasestevens opened this issue Mar 21, 2019 · 0 comments

Comments

@hchasestevens
Copy link
Owner

Traceback:

Traceback (most recent call last):
  File "/usr/local/bin/bellybutton", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/bellybutton/cli.py", line 218, in main
    for arg in args.func.__code__.co_varnames[:args.func.__code__.co_argcount]
  File "/usr/local/lib/python3.6/dist-packages/bellybutton/cli.py", line 191, in lint
    for failure in linting_failures(filepaths, rules):
  File "/usr/local/lib/python3.6/dist-packages/bellybutton/cli.py", line 134, in linting_failures
    for filepath, file_contents in files:
  File "/usr/local/lib/python3.6/dist-packages/bellybutton/cli.py", line 109, in open_python_files
    contents = f.read()
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 3487: 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