From adcdd00179f01e47a30cc45a46712845d78bae06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sat, 25 Jun 2022 21:29:04 +0200 Subject: [PATCH] allow overriding STRIPE_* with local_settings.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without a default value it will fail before it gets a chance to be overriden by local_settings.py Signed-off-by: Loïc Dachary --- dashboard/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/settings.py b/dashboard/settings.py index 5422eae..70570dc 100644 --- a/dashboard/settings.py +++ b/dashboard/settings.py @@ -157,8 +157,8 @@ PAYMENT_VARIANTS = { "stripe": ( "payments.stripe.StripeProvider", { - "secret_key": env.get_value("STRIPE_SECRET_KEY"), - "public_key": env.get_value("STRIPE_PUBLIC_KEY"), + "secret_key": env.get_value("STRIPE_SECRET_KEY", default=""), + "public_key": env.get_value("STRIPE_PUBLIC_KEY", default=""), }, ) }