diff --git a/component/core.py b/component/core.py index d84febe8c..533a08636 100644 --- a/component/core.py +++ b/component/core.py @@ -321,9 +321,8 @@ def component_by_name(self, name, model_name=None): and self.collection._name != component_class._collection ): raise NoComponentError( - "Component with name '%s' can't be used for collection '%s'."( - name, self.collection._name - ) + "Component with name '%s' can't be used for collection '%s'." + % (name, self.collection._name) ) if (