mirror of
https://github.com/django-components/django-components.git
synced 2025-09-11 08:26:17 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
15a0e66219
commit
0648ad9a93
14 changed files with 983 additions and 432 deletions
|
@ -12,7 +12,9 @@ class ComponentRegistry(object):
|
|||
|
||||
def register(self, name=None, component=None):
|
||||
if name in self._registry:
|
||||
raise AlreadyRegistered('The component "%s" is already registered' % name)
|
||||
raise AlreadyRegistered(
|
||||
'The component "%s" is already registered' % name
|
||||
)
|
||||
|
||||
self._registry[name] = component
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue