From 7c56b644109692d9114fd373b50aaec2e491e2ae Mon Sep 17 00:00:00 2001 From: Miles Calabresi Date: Tue, 14 May 2024 23:11:22 -0400 Subject: [PATCH] decode binary theme data --- esp/esp/themes/controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp/esp/themes/controllers.py b/esp/esp/themes/controllers.py index c837bb12fc..a2e301780d 100644 --- a/esp/esp/themes/controllers.py +++ b/esp/esp/themes/controllers.py @@ -305,7 +305,7 @@ def compile_css(self, theme_name, variable_data, output_filename): css_data = self.compile_less(less_data) with open(output_filename, 'w') as output_file: - output_file.write(six.text_type(THEME_COMPILED_WARNING) + six.text_type(css_data)) + output_file.write(six.text_type(THEME_COMPILED_WARNING) + css_data.decode('UTF-8')) logger.debug('Wrote %.1f KB CSS output to %s', len(css_data) / 1000., output_filename) Tag.setTag("current_theme_version", value = hex(random.getrandbits(16)))