Can't catch InitErrors?

There’s probably an obvious answer to this question, but I can’t seem to find it. I have a package that loads another package with a using statement. The package that’s loaded has an init function that may error, so I’ve tried putting the using statement in a try-catch block like this:

module mymodule
        using otherpackage

I’m finding, however, that regardless of the try-catch, the InitError from otherpackage propagates if raised, causing my package not load. Is it not possible to catch InitErrors when a package is loading? I’d be grateful for any pointers.

1 Like