diff --git a/Lib/python/pyiterators.swg b/Lib/python/pyiterators.swg index d95bf2eeb..cae4092ba 100644 --- a/Lib/python/pyiterators.swg +++ b/Lib/python/pyiterators.swg @@ -17,7 +17,7 @@ namespace swig */ %ignore stop_iteration; %typemap(throws) stop_iteration { - (void)$exception; + (void)$1; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } diff --git a/Source/Modules/emit.cxx b/Source/Modules/emit.cxx index 13c0214e2..c65c4d657 100644 --- a/Source/Modules/emit.cxx +++ b/Source/Modules/emit.cxx @@ -440,7 +440,6 @@ void emit_action(Node *n, Wrapper *f) { } else { Printf(eaction,"catch(%s) {", SwigType_str(et, "&_e")); } - Replaceall(em,"$exception","_e"); Printv(eaction,em,"\n",NIL); Printf(eaction,"}\n"); } else {