Skip to content

Commit 52de303

Browse files
committed
Improved format_error function using six text_type
1 parent 3385f0f commit 52de303

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graphql/error/format_error.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
from six import text_type
2+
13
from .base import GraphQLError
24

35

46
def format_error(error):
57
formatted_error = {
6-
'message': str(error),
8+
'message': text_type(error),
79
}
810
if isinstance(error, GraphQLError):
911
if error.locations is not None:

0 commit comments

Comments
 (0)