For python 2.6, don't try to use Exception.message