Raise NotImplementedError instead of NotImplemented

NotImplementedError is the name of the exception
(https://docs.python.org/2/library/exceptions.html).
NotImplemented is the name of a constant
(https://docs.python.org/2/library/constants.html).
This patch fix it.

Change-Id: If0c220b8fc8480e5904400e9086935944bce728a
Closes-Bug: #1339855
This commit is contained in:
Ji-Wei 2016-09-05 18:10:12 +08:00 committed by Jamie Lennox
parent 1a94080224
commit f2792d7d07
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ class BaseAuthProtocol(object):
:returns: The token data
:rtype: dict
"""
raise NotImplemented()
raise NotImplementedError()
def process_response(self, response):
"""Do whatever you'd like to the response.