update_analytics_counts: Fix warning output.

This commit is contained in:
Tim Abbott 2020-08-28 14:24:39 -07:00
parent 468c5b9a58
commit c05315ace2
1 changed files with 2 additions and 1 deletions

View File

@ -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: