From 620c825d7705fb3fbd67dfee42938fe793816e71 Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Tue, 9 May 2017 09:56:18 +0200 Subject: [PATCH] fix message --- src/python/histogram.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/histogram.cpp b/src/python/histogram.cpp index 60663198..de1730ac 100644 --- a/src/python/histogram.cpp +++ b/src/python/histogram.cpp @@ -232,7 +232,7 @@ python::object histogram_fill(python::tuple args, python::dict kwargs) { python::object ow; if (kwargs) { if (len(kwargs) > 1 || !kwargs.has_key("weight")) { - PyErr_SetString(PyExc_RuntimeError, "only keyword w allowed"); + PyErr_SetString(PyExc_RuntimeError, "only keyword weight allowed"); python::throw_error_already_set(); } ow = kwargs.get("weight"); @@ -303,7 +303,7 @@ python::object histogram_fill(python::tuple args, python::dict kwargs) { return python::object(); } } -#endif +#endif /* HAVE_NUMPY */ const unsigned dim = nargs - 1; if (dim != self.dim()) {