blob: caf62bb652e26361e3bdc6e7a2df434c96eebe8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
lib/DiffractionImage/DiffractionImagePythonInterface.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/DiffractionImage/DiffractionImagePythonInterface.cpp b/lib/DiffractionImage/DiffractionImagePythonInterface.cpp
index f729fc5..4c24e82 100755
--- a/lib/DiffractionImage/DiffractionImagePythonInterface.cpp
+++ b/lib/DiffractionImage/DiffractionImagePythonInterface.cpp
@@ -867,7 +867,7 @@ SWIG_Python_AddErrorMsg(const char* mesg)
Py_DECREF(old_str);
Py_DECREF(value);
} else {
- PyErr_Format(PyExc_RuntimeError, mesg);
+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
}
}
|