Fix unit test failure if python-glanceclient is installed

I would only raise for the exact error.