keep unsandbox keys on validation failure, let user fix them
This commit is contained in:
parent
16314eeee5
commit
8a0eef7b39
1 changed files with 1 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue