bt2: prepend underscore to exceptions not meant to be raised by user
[babeltrace.git] / src / bindings / python / bt2 / bt2 / trace.py
index 5516a986daaa00893e9f626d654686a6b28b5f9b..a90b53ce9433352d33bae6a7308f167b3088db12 100644 (file)
@@ -166,7 +166,7 @@ class _Trace(object._SharedObject, collections.abc.Mapping):
             )
 
         if stream_ptr is None:
-            raise bt2.MemoryError('cannot create stream object')
+            raise bt2._MemoryError('cannot create stream object')
 
         stream = bt2.stream._Stream._create_from_ptr(stream_ptr)
 
This page took 0.025245 seconds and 4 git commands to generate.