From c05315ace2fa53135c9f815f741da24666ff31d6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 28 Aug 2020 14:24:39 -0700 Subject: [PATCH] update_analytics_counts: Fix warning output. --- analytics/management/commands/update_analytics_counts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analytics/management/commands/update_analytics_counts.py b/analytics/management/commands/update_analytics_counts.py index eed57976ab..1acd1e6f5b 100644 --- a/analytics/management/commands/update_analytics_counts.py +++ b/analytics/management/commands/update_analytics_counts.py @@ -43,7 +43,8 @@ class Command(BaseCommand): try: os.mkdir(settings.ANALYTICS_LOCK_DIR) except OSError: - print(WARNING + "Analytics lock %s is unavailable; exiting... " + ENDC) + print(f"{WARNING}Analytics lock {settings.ANALYTICS_LOCK_DIR} is unavailable;" + f" exiting.{ENDC}") return try: