Instead of `exc.value` try `exc[1]`.