bt2: change some bt2.CreationError usages to ValueError
[babeltrace.git] / bindings / python / bt2 / bt2 / trace_class.py
index 9ae57ade86e61c59b2487ce2bc712cc22ac2dc61..b8eeb30f22ef7a1d5059df15bf5e1787141ecad1 100644 (file)
@@ -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)
This page took 0.023459 seconds and 4 git commands to generate.