diff --git a/src/runner/pylogger.cpp b/src/runner/pylogger.cpp index 111f571..3eb4c31 100644 --- a/src/runner/pylogger.cpp +++ b/src/runner/pylogger.cpp @@ -23,7 +23,7 @@ void emit_function(bpy::object self, bpy::object record) { // There are other parameters that could be used, but this is minimal for // now (filename, line number, etc.). const int level = bpy::extract(record.attr("levelno")); - const std::wstring msg = bpy::extract(record.attr("msg")); + const std::wstring msg = bpy::extract(bpy::str(record.attr("msg"))); switch (level) { case PyLogLevel::CRITICAL: