Updating generic.py error message #8618 - New branch

I deleted the previous branch that was causing problems and submitted this.
This is my first attempt at a PR. I just made a little change to allow an error message. Would appreciate some feedback.
@jreback @jorisvandenbossche @hayd 

I agree empty just raise (as it is tested above)