Check for ImportError rather than any exception