keep unsandbox keys on validation failure, let user fix them

This commit is contained in:
russell@unturf.com 2026-02-18 06:49:19 -05:00
parent 16314eeee5
commit 8a0eef7b39

View file

@ -799,9 +799,7 @@ def shop_settings(request):
try:
validate_keys(shop.unsandbox_public_key, shop.unsandbox_secret_key)
except Exception as e:
shop.unsandbox_public_key = None
shop.unsandbox_secret_key = None
request.session.flash((f"Unsandbox API keys are invalid or expired: {e}", "error"))
request.session.flash((f"Unsandbox API keys are invalid or expired: {e}. Keys saved — fix or extend at unsandbox.com.", "error"))
else:
from ..lib.karaoke import backfill_karaoke_async
backfill_karaoke_async(