Narrow the scope of the try/except block, to avoid a misleading error message if fn() throws an AttributeError.