Changing the exception to ImportError didn't help - so import submodules conditionally