Fix: bt2: replace bt2.CreationError instances with bt2._MemoryError
[babeltrace.git] / src / bindings / python / bt2 / bt2 / interrupter.py
index 9c9868d19d5b7fe374b939287cc03e093079dbfa..576dc3b9478b5248d993ef85ea064c35f3f91f7e 100644 (file)
@@ -31,7 +31,7 @@ class Interrupter(object._SharedObject):
         ptr = native_bt.interrupter_create()
 
         if ptr is None:
-            raise bt2.CreationError('cannot create interrupter object')
+            raise bt2._MemoryError('cannot create interrupter object')
 
         super().__init__(ptr)
 
This page took 0.023096 seconds and 4 git commands to generate.