fix: conf must be available
This commit is contained in:
parent
a3feb08100
commit
586fee979b
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ def _(msg: str, lang: str | None = None, context: str | None = None) -> str:
|
|||
"""
|
||||
from frappe.utils import is_html, strip_html_tags
|
||||
|
||||
if conf.use_gettext:
|
||||
if conf and conf.use_gettext:
|
||||
from frappe.gettext.translate import get_all_translations
|
||||
else:
|
||||
from frappe.translate import get_all_translations
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue