diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-18 09:04:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-18 09:04:05 +0300 |
commit | 6524d274625d920d5711b7f2d324904af787188a (patch) | |
tree | cf8d8da05d50d8f3a3d4a89cc2527bd81ab06f87 /source/blender/python/intern/bpy_interface.c | |
parent | 1dc4db7775f0a7a078aa32f44d51cd495528ec4d (diff) |
py api was raising SystemError exception incorrectly, this is intended for internal interpreter problems.
Replace most with RuntimeError.
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 0e9532aa726..d07e50398d9 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -400,7 +400,7 @@ static int python_script_exec(bContext *C, const char *fn, struct Text *text, st #endif } else { - PyErr_Format(PyExc_SystemError, "Python file \"%s\" could not be opened: %s", fn, strerror(errno)); + PyErr_Format(PyExc_IOError, "Python file \"%s\" could not be opened: %s", fn, strerror(errno)); py_result= NULL; } } |