projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: change some bt2.CreationError usages to ValueError
[babeltrace.git]
/
bindings
/
python
/
bt2
/
bt2
/
trace_class.py
diff --git
a/bindings/python/bt2/bt2/trace_class.py
b/bindings/python/bt2/bt2/trace_class.py
index 9ae57ade86e61c59b2487ce2bc712cc22ac2dc61..b8eeb30f22ef7a1d5059df15bf5e1787141ecad1 100644
(file)
--- 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:
if self.assigns_automatic_stream_class_id:
if id is not None:
- raise
bt2.Creation
Error('id provided, but trace class assigns automatic stream class ids')
+ raise
Value
Error('id provided, but trace class assigns automatic stream class ids')
sc_ptr = native_bt.stream_class_create(self._ptr)
else:
if id is None:
sc_ptr = native_bt.stream_class_create(self._ptr)
else:
if id is None:
- raise
bt2.Creation
Error('id not provided, but trace class does not assign automatic stream class ids')
+ raise
Value
Error('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)
utils._check_uint64(id)
sc_ptr = native_bt.stream_class_create_with_id(self._ptr, id)
This page took
0.023482 seconds
and
4
git commands to generate.