settings: Make CAMO_KEY Optional.

This ensures that CAMO_KEY is always defined, so that mypy_django_plugin
will be able to identify its type.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-08-09 23:37:43 -04:00
committed by Tim Abbott
parent 544d58a693
commit 448253c009

View File

@@ -570,9 +570,8 @@ if STATSD_HOST != "":
# CAMO HTTPS CACHE CONFIGURATION # CAMO HTTPS CACHE CONFIGURATION
######################################################################## ########################################################################
if CAMO_URI != "": # This needs to be synced with the Camo installation
# This needs to be synced with the Camo installation CAMO_KEY = get_secret("camo_key") if CAMO_URI != "" else None
CAMO_KEY = get_secret("camo_key")
######################################################################## ########################################################################
# STATIC CONTENT AND MINIFICATION SETTINGS # STATIC CONTENT AND MINIFICATION SETTINGS