Fix the try-except around the module import.