[minor] fixes for import conf

This commit is contained in:
Anand Doshi
2013-09-24 17:17:39 +05:30
parent 0eb811a518
commit de8b6aadaf
10 changed files with 18 additions and 14 deletions

View File

@@ -91,7 +91,7 @@ class DocType():
raise_exception=1)
from webnotes import conf
if getattr(conf, "status", None) == "Trial":
if (conf.get("status") or None) == "Trial":
webnotes.msgprint(_("""Sending newsletters is not allowed for Trial users, \
to prevent abuse of this feature."""), raise_exception=1)