bt2: rename CreationError to MemoryError, handle it in and out of Python bindings
[babeltrace.git] / src / bindings / python / bt2 / bt2 / trace.py
index 86bd90d05ae1d58844e9654a2f6009fe3eb0d3b1..5516a986daaa00893e9f626d654686a6b28b5f9b 100644 (file)
@@ -166,7 +166,7 @@ class _Trace(object._SharedObject, collections.abc.Mapping):
             )
 
         if stream_ptr is None:
-            raise bt2.CreationError('cannot create stream object')
+            raise bt2.MemoryError('cannot create stream object')
 
         stream = bt2.stream._Stream._create_from_ptr(stream_ptr)
 
This page took 0.023754 seconds and 4 git commands to generate.