From 2a0d010f5a9e22042ed1ab0b194484663fa55766 Mon Sep 17 00:00:00 2001 From: Ji-Wei Date: Sat, 3 Sep 2016 12:32:51 +0800 Subject: [PATCH] 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). >>> raise NotImplemented() Traceback (most recent call last): File "", line 1, in raise NotImplemented() TypeError: 'NotImplementedType' object is not callable >>> raise NotImplementedError() Traceback (most recent call last): File "", line 1, in raise NotImplementedError() NotImplementedError This patch fix it. Change-Id: Ia8bf7d75cd7f70e503b9669fc60ea9d89642489b Closes-Bug: #1339855 --- fuelclient/commands/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuelclient/commands/base.py b/fuelclient/commands/base.py index e5058b5f..8ed09867 100644 --- a/fuelclient/commands/base.py +++ b/fuelclient/commands/base.py @@ -65,11 +65,11 @@ class BaseCommand(command.Command): @property def supported_file_formats(self): - raise NotImplemented() + raise NotImplementedError() @property def allowed_attr_types(self): - raise NotImplemented() + raise NotImplementedError() @six.add_metaclass(abc.ABCMeta)