Nov-24-2020, 05:32 PM
You can catch the error, but what would you do once caught? Would you try some other type of import?
The only time I've seen that technique is if you have some optional feature available through a module. You can import the feature and if the import fails, not make that option available.
But if the module is required, failing on the import is expected.
The only time I've seen that technique is if you have some optional feature available through a module. You can import the feature and if the import fails, not make that option available.
But if the module is required, failing on the import is expected.