py api was raising SystemError exception incorrectly, this is intended for internal interpreter problems.

Replace most with RuntimeError.
This commit is contained in:
2011-02-18 06:04:05 +00:00
parent 1dc4db7775
commit 6524d27462
8 changed files with 33 additions and 33 deletions

View File

@@ -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;
}
}