diff --git a/frappe/gettext/extractors/html_template.py b/frappe/gettext/extractors/html_template.py index 34f51e4032..603c78e64e 100644 --- a/frappe/gettext/extractors/html_template.py +++ b/frappe/gettext/extractors/html_template.py @@ -9,7 +9,7 @@ def extract(*args, **kwargs): Reuse the babel_extract function from jinja2.ext, but handle our own implementation of `_()`. To handle JS microtemplates, parse all code again using regex.""" fileobj = args[0] or kwargs["fileobj"] - print(fileobj.name) + code = fileobj.read().decode("utf-8") for lineno, funcname, messages, comments in babel_extract(*args, **kwargs):