Avoid treating exception as a tuple as this no longer works in python 3