Pass on AttrbuteError correctly