Skip to content

Commit

Permalink
Fix string interpolation
Browse files Browse the repository at this point in the history
Fixes #362
  • Loading branch information
guewen authored and asierneiradev committed Nov 25, 2022
1 parent 5948ec7 commit 1400bb4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions component/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 1400bb4

Please sign in to comment.