From 448253c00955d396e63668aa4315cd7ee58b37af Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Tue, 9 Aug 2022 23:37:43 -0400 Subject: [PATCH] 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 --- zproject/computed_settings.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index d4494f63c1..d96d1dcfbc 100644 --- a/zproject/computed_settings.py +++ b/zproject/computed_settings.py @@ -570,9 +570,8 @@ if STATSD_HOST != "": # CAMO HTTPS CACHE CONFIGURATION ######################################################################## -if CAMO_URI != "": - # This needs to be synced with the Camo installation - CAMO_KEY = get_secret("camo_key") +# This needs to be synced with the Camo installation +CAMO_KEY = get_secret("camo_key") if CAMO_URI != "" else None ######################################################################## # STATIC CONTENT AND MINIFICATION SETTINGS