Changed raise statement to work with Python 3

I made one small change, and this is working with Django 1.6b4 under Python 3.3.2.