The 1 and -1 are no problem here as they are removable singularities. It is understood that you just give the integrand the value that would make it continuous there.
In fact you could take a continuous function on the interval [a,b] and change it at a countable number of points without changing the fact that it is Riemann integrable and without changing the value of its integral.
That said, I do not like the wording of the question because it is essentially asking students to find the Cauchy Principal Value of the given integral without explicitly saying so. As written, the improper integral is not well defined. Eg if we integrated from -a to 2a and let a->inf we would get a different value for our integral, which would not happen with a convergent improper integral on R.