X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Ftrace_class.py;fp=bindings%2Fpython%2Fbt2%2Fbt2%2Ftrace_class.py;h=b8eeb30f22ef7a1d5059df15bf5e1787141ecad1;hp=9ae57ade86e61c59b2487ce2bc712cc22ac2dc61;hb=4430bc809d78701c128ced642fb4e9597bc00ad0;hpb=7e4b80cc148d07716d605eb220f6f54aeddd9363 diff --git a/bindings/python/bt2/bt2/trace_class.py b/bindings/python/bt2/bt2/trace_class.py index 9ae57ade..b8eeb30f 100644 --- a/bindings/python/bt2/bt2/trace_class.py +++ b/bindings/python/bt2/bt2/trace_class.py @@ -176,12 +176,12 @@ class TraceClass(object._SharedObject, collections.abc.Mapping): if self.assigns_automatic_stream_class_id: if id is not None: - raise bt2.CreationError('id provided, but trace class assigns automatic stream class ids') + raise ValueError('id provided, but trace class assigns automatic stream class ids') sc_ptr = native_bt.stream_class_create(self._ptr) else: if id is None: - raise bt2.CreationError('id not provided, but trace class does not assign automatic stream class ids') + raise ValueError('id not provided, but trace class does not assign automatic stream class ids') utils._check_uint64(id) sc_ptr = native_bt.stream_class_create_with_id(self._ptr, id)