File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
static_precompiler/compilers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def compile_file(self, source_path):
50
50
else :
51
51
compiled = sass .compile (filename = full_source_path , include_paths = self .load_paths )
52
52
except sass .CompileError as e :
53
- raise exceptions .StaticCompilationError (e . message )
53
+ raise exceptions .StaticCompilationError (encoding . force_str ( e ) )
54
54
55
55
compiled = encoding .force_str (compiled )
56
56
sourcemap = encoding .force_str (sourcemap )
@@ -72,7 +72,7 @@ def compile_source(self, source):
72
72
try :
73
73
compiled = sass .compile (string = source , indented = self .indented )
74
74
except sass .CompileError as e :
75
- raise exceptions .StaticCompilationError (e . message )
75
+ raise exceptions .StaticCompilationError (encoding . force_str ( e ) )
76
76
77
77
compiled = encoding .force_str (compiled )
78
78
You can’t perform that action at this time.
0 commit comments