Now only excepting AttributeError instead of all errors.

Better to do it this way, per Bjarni in IRC, so we don't catch any possible error that occurs while in this piece of code.