From 2d221c9d700c9e519785fad9e87020f4e9897dc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 11 Oct 2014 15:39:11 -0400 Subject: [PATCH] Python bindings: clarify invalid argument type exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- bindings/python/babeltrace.i.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/babeltrace.i.in b/bindings/python/babeltrace.i.in index b1c4f50b..8ff24b7c 100644 --- a/bindings/python/babeltrace.i.in +++ b/bindings/python/babeltrace.i.in @@ -2821,7 +2821,7 @@ class CTFWriter: """ def __init__(self, stream_class): if not isinstance(stream_class, CTFWriter.StreamClass): - raise TypeError("Invalid stream_class type.") + raise TypeError("Invalid stream_class argument must be of type StreamClass.") self._s = _bt_ctf_stream_create(stream_class._sc) if self._s is None: -- 2.34.1