Raise NotImplementedError instead of NotImplemented
Change-Id: Ia6bae64fb5618208b35a652194159c365f6c46a9
This commit is contained in:
parent
7e5e0fa455
commit
d2f4b9ceca
|
@ -72,9 +72,9 @@ class QuotaUsage(dict):
|
|||
return self.usages[key]
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
raise NotImplemented("Directly setting QuotaUsage values is not "
|
||||
"supported. Please use the add_quota and "
|
||||
"tally methods.")
|
||||
raise NotImplementedError("Directly setting QuotaUsage values is not "
|
||||
"supported. Please use the add_quota and "
|
||||
"tally methods.")
|
||||
|
||||
def __repr__(self):
|
||||
return repr(dict(self.usages))
|
||||
|
|
Loading…
Reference in New Issue