Correctly check quota exception