Skip to content

UnicodeDecodeError in format_error #216

Closed
@chinskiy

Description

@chinskiy

Greetings!
After upgrading from

graphene                           2.0.1
graphene-django                    2.0.0
graphql-core                       2.0

to

graphene                           2.1.3
graphene-django                    2.2.0
graphql-core                       2.1

on python 2 I faced with UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) issue when execute smth like

from graphene_django.views import GraphQLView

GraphQLView.format_error(error)

when error has non-ASCII characters like Ошибка

And seems like backward incompatibility appears after this change(found few similar issues on GH with six.text_type)

If you agree that this is a bug I will try to provide fix for it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions