Skip to content

Commit f03ab59

Browse files
committed
Remove default exception handling from module __init__ functions
Ref: issue #12505
1 parent d5b880d commit f03ab59

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/module.c

+1-8
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,7 @@ void jl_module_run_initializer(jl_module_t *m)
538538
jl_function_t *f = jl_module_get_initializer(m);
539539
if (f == NULL)
540540
return;
541-
JL_TRY {
542-
jl_apply(f, NULL, 0);
543-
}
544-
JL_CATCH {
545-
jl_printf(JL_STDERR, "WARNING: error initializing module %s:\n", m->name->name);
546-
jl_static_show(JL_STDERR, jl_exception_in_transit);
547-
jl_printf(JL_STDERR, "\n");
548-
}
541+
jl_apply(f, NULL, 0);
549542
}
550543

551544
jl_function_t *jl_module_call_func(jl_module_t *m)

0 commit comments

Comments
 (0)