From 1400bb4ec5eed41592994e4d4554366bbe1c4d44 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Tue, 24 Mar 2020 09:27:57 +0100 Subject: [PATCH] Fix string interpolation Fixes #362 --- component/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 (