Commit 88cedfbf authored by Michal Čihař's avatar Michal Čihař

Do not use deprecated logger method warn

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 30b9eec4
...@@ -279,7 +279,7 @@ class Command(BaseCommand): ...@@ -279,7 +279,7 @@ class Command(BaseCommand):
project=project project=project
) )
if subprojects.exists(): if subprojects.exists():
self.logger.warn( self.logger.warning(
'Component %s already exists, skipping', 'Component %s already exists, skipping',
name name
) )
...@@ -337,7 +337,7 @@ class Command(BaseCommand): ...@@ -337,7 +337,7 @@ class Command(BaseCommand):
slug = slugify(name) slug = slugify(name)
if SubProject.objects.filter(project=project, slug=slug).exists(): if SubProject.objects.filter(project=project, slug=slug).exists():
self.logger.warn( self.logger.warning(
'Component %s already exists, skipping and using it ' 'Component %s already exists, skipping and using it '
'as main component', 'as main component',
name name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment