Python decided that storing the exception message as...you know...a variable named message... wasn't a good idea. So they deprecated it in Python 2.6. It went away entirely in Python 3.
I don't quite understand why, but there you go.
At least the fix is easy