Wrapping imports in try statement for docs