From beba07efd43e0cd952c813dcb7e020d38e40ef1d Mon Sep 17 00:00:00 2001 From: Vedran Karacic Date: Wed, 12 Jul 2017 11:14:06 +0200 Subject: [PATCH] Fix string formatting. --- .../djangoapps/catalog/management/commands/cache_programs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/catalog/management/commands/cache_programs.py b/openedx/core/djangoapps/catalog/management/commands/cache_programs.py index fc8c86316d..ec4f521d40 100644 --- a/openedx/core/djangoapps/catalog/management/commands/cache_programs.py +++ b/openedx/core/djangoapps/catalog/management/commands/cache_programs.py @@ -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