diff --git a/frappe/www/website_script.py b/frappe/www/website_script.py index e927940b1a..90a894d205 100644 --- a/frappe/www/website_script.py +++ b/frappe/www/website_script.py @@ -10,7 +10,7 @@ no_sitemap = 1 base_template_path = "templates/www/website_script.js" def get_context(context): - context.javascript = frappe.db.get_single_value('Website Script', 'javascript') + context.javascript = frappe.db.get_single_value('Website Script', 'javascript') or "" theme = get_active_theme() js = strip(theme and theme.js or "")