diff options
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/gen_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.c b/source/blender/python/api2_2x/gen_utils.c index ecdcc11e9f7..e909de1184c 100644 --- a/source/blender/python/api2_2x/gen_utils.c +++ b/source/blender/python/api2_2x/gen_utils.c @@ -470,7 +470,7 @@ PyObject *EXPP_addScriptLink(ScriptLink *slink, PyObject *args, int is_scene) else if( is_scene && !strcmp( eventname, "OnSave" ) ) event = SCRIPT_ONSAVE; else - return EXPP_ReturnIntError( PyExc_AttributeError, + return EXPP_ReturnPyObjError( PyExc_AttributeError, "invalid event name" ); stmp = slink->scripts; |