Ver código fonte

[fix] expiry message

version-14
Rushabh Mehta 8 anos atrás
pai
commit
d45cf60c6c
1 arquivos alterados com 7 adições e 1 exclusões
  1. +7
    -1
      frappe/limits.py

+ 7
- 1
frappe/limits.py Ver arquivo

@@ -18,6 +18,11 @@ def check_if_expired():
return

limits = get_limits()
expiry = limits.get("expiry")

if not expiry:
return

expires_on = formatdate(limits.get("expiry"))
support_email = limits.get("support_email")

@@ -28,7 +33,8 @@ def check_if_expired():
message = _("""Your subscription expired on {0}. To renew, please send an email to {1}.""").format(expires_on, support_email)

else:
message = _("""Your subscription expired on {0}""").format(expires_on)
# no recourse just quit
return

frappe.throw(message, SiteExpiredError)



Carregando…
Cancelar
Salvar