Wrapping import with try/except