Updated Attributes

Updated the attributes class to handle exceptions and log errors.