diff options
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.c')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c index 113a553c6f5..fd44e09003e 100644 --- a/source/blender/python/generic/py_capi_utils.c +++ b/source/blender/python/generic/py_capi_utils.c @@ -150,9 +150,11 @@ PyObject *PyC_ExceptionBuffer(void) if(! (string_io_mod= PyImport_ImportModule("io")) ) { goto error_cleanup; - } else if (! (string_io = PyObject_CallMethod(string_io_mod, (char *)"StringIO", NULL))) { + } + else if (! (string_io = PyObject_CallMethod(string_io_mod, (char *)"StringIO", NULL))) { goto error_cleanup; - } else if (! (string_io_getvalue= PyObject_GetAttrString(string_io, "getvalue"))) { + } + else if (! (string_io_getvalue= PyObject_GetAttrString(string_io, "getvalue"))) { goto error_cleanup; } |