2 ms·
But the only universally good reason I know of where you should be wrapping imports in try except is 2/3 compatibility or other module/library import fallback.
by techdragon 11y ago
But the only universally good reason I know of where you should be wrapping imports in try except is 2/3 compatibility or other module/library import fallback. For these you need to be catching syntaxerror and other system errors.