X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Finterrupter.py;h=576dc3b9478b5248d993ef85ea064c35f3f91f7e;hb=564f3258ffc46759e6704eecf84e9cfc255709df;hp=9c9868d19d5b7fe374b939287cc03e093079dbfa;hpb=f3c9a159782f70dbd0e5dedb37e4a1ef8a6d304e;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/interrupter.py b/src/bindings/python/bt2/bt2/interrupter.py index 9c9868d1..576dc3b9 100644 --- a/src/bindings/python/bt2/bt2/interrupter.py +++ b/src/bindings/python/bt2/bt2/interrupter.py @@ -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)