Skip to content

Commit

Permalink
Fixes issue with supported_mediatypes in python3
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandall committed Jan 19, 2015
1 parent c17f500 commit a9667e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_restful/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def handle_error(self, e):
# make_response uses a representation we support as the
# default mediatype (so that make_response doesn't throw
# another NotAcceptable error).
supported_mediatypes = self.representations.keys()
supported_mediatypes = list(self.representations.keys())
fallback_mediatype = supported_mediatypes[0] if supported_mediatypes else "text/plain"
resp = self.make_response(
data,
Expand Down

0 comments on commit a9667e2

Please sign in to comment.