Commit beba07ef by Vedran Karacic

Fix string formatting.

parent 447bee2e
......@@ -41,7 +41,7 @@ class Command(BaseCommand):
user = User.objects.get(username=username)
except User.DoesNotExist:
logger.error(
'Failed to create API client. Service user {username} does not exist.'.format(username)
'Failed to create API client. Service user {username} does not exist.'.format(username=username)
)
raise
......@@ -85,7 +85,7 @@ class Command(BaseCommand):
client = create_catalog_api_client(user)
except User.DoesNotExist:
logger.error(
'Failed to create API client. Service user {username} does not exist.'.format(username)
'Failed to create API client. Service user {username} does not exist.'.format(username=username)
)
raise
......
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