Actually, why rescue *any* exceptions here? If the user does not want rubygem-pg.rpm she can override the ruby package list to empty.