Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

update_analytics_counts: Fix warning output.

Tim Abbottc05315ace2fa
diff --git a/analytics/management/commands/update_analytics_counts.py b/analytics/management/commands/update_analytics_counts.py
index eed57976aba..1acd1e6f5b3 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: