Skip to content

Commit

Permalink
Merge pull request #2434 from alexsdutton/patch-1
Browse files Browse the repository at this point in the history
NotImplemented is not an exception
  • Loading branch information
tomchristie committed Jan 19, 2015
2 parents 0dffc46 + af05820 commit ae77ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class BaseRenderer(object):
render_style = 'text'

def render(self, data, accepted_media_type=None, renderer_context=None):
raise NotImplemented('Renderer class requires .render() to be implemented')
raise NotImplementedError('Renderer class requires .render() to be implemented')


class JSONRenderer(BaseRenderer):
Expand Down

0 comments on commit ae77ff9

Please sign in to comment.