Skip to content

Commit

Permalink
Remove default exception handling from module __init__ functions
Browse files Browse the repository at this point in the history
Ref: issue #12505
  • Loading branch information
jdlangs committed Aug 11, 2015
1 parent d5b880d commit f03ab59
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,7 @@ void jl_module_run_initializer(jl_module_t *m)
jl_function_t *f = jl_module_get_initializer(m);
if (f == NULL)
return;
JL_TRY {
jl_apply(f, NULL, 0);
}
JL_CATCH {
jl_printf(JL_STDERR, "WARNING: error initializing module %s:\n", m->name->name);
jl_static_show(JL_STDERR, jl_exception_in_transit);
jl_printf(JL_STDERR, "\n");
}
jl_apply(f, NULL, 0);
}

jl_function_t *jl_module_call_func(jl_module_t *m)
Expand Down

0 comments on commit f03ab59

Please sign in to comment.