diff options
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_traceback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_traceback.c b/source/blender/python/intern/bpy_traceback.c index e92a0b788ea..dd7e6b03e8b 100644 --- a/source/blender/python/intern/bpy_traceback.c +++ b/source/blender/python/intern/bpy_traceback.c @@ -34,8 +34,8 @@ static const char *traceback_filepath(PyTracebackObject *tb, PyObject **coerce) { - return PyBytes_AS_STRING( - (*coerce = PyUnicode_EncodeFSDefault(tb->tb_frame->f_code->co_filename))); + *coerce = PyUnicode_EncodeFSDefault(tb->tb_frame->f_code->co_filename); + return PyBytes_AS_STRING(*coerce); } /* copied from pythonrun.c, 3.4.0 */ |