From 3917225fdb59063c62dac76d223bfc9c5fe71494 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 19 Oct 2018 19:15:31 +0100 Subject: [PATCH] Cosmetic Python error message improvement --- Lib/python/pyerrors.swg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/python/pyerrors.swg b/Lib/python/pyerrors.swg index f21d28b45..dcd99c939 100644 --- a/Lib/python/pyerrors.swg +++ b/Lib/python/pyerrors.swg @@ -91,9 +91,9 @@ SWIG_Python_RaiseOrModifyTypeError(const char *message) PyObject *type = NULL, *value = NULL, *traceback = NULL; PyErr_Fetch(&type, &value, &traceback); #if PY_VERSION_HEX >= 0x03000000 - newvalue = PyUnicode_FromFormat("%S\nAdditional Information:\n%s", value, message); + newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message); #else - newvalue = PyString_FromFormat("%s\nAdditional Information:\n%s", PyString_AsString(value), message); + newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message); #endif Py_XDECREF(value); PyErr_Restore(type, newvalue, traceback);