From 0094bc92dd05b0d73cd3faa8585459d99927e779 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 24 Apr 2005 19:32:04 +0000 Subject: - EXPP_addScriptLink called wrong error function (I bet the compiler warned about this...) --- source/blender/python/api2_2x/gen_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python') 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; -- cgit v1.2.3