[fix] expiry message

This commit is contained in:
Rushabh Mehta 2017-04-13 14:52:13 +05:30
parent f1595c06b4
commit d45cf60c6c

View file

@ -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)