If the check for canImport() throws an exception, the error is not caught and surfaced in a meaningful way.
To resolve this, move the start of the 'try' so that it includes the call of canImport()
Active
1.0
Code