X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ftrace.py;h=db8268db1cf82cb4473f941ba518ac6891358b87;hb=2a52034afe45faa6321ca6f0cdcb46b08292fb04;hp=86bd90d05ae1d58844e9654a2f6009fe3eb0d3b1;hpb=ee2cad25d5c65cd781169c897a53310cee9948fe;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/trace.py b/src/bindings/python/bt2/bt2/trace.py index 86bd90d0..db8268db 100644 --- a/src/bindings/python/bt2/bt2/trace.py +++ b/src/bindings/python/bt2/bt2/trace.py @@ -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) @@ -190,4 +190,4 @@ class _Trace(object._SharedObject, collections.abc.Mapping): status, 'cannot add destruction listener to trace object' ) - return bt2._ListenerHandle(listener_id, self) + return bt2.utils._ListenerHandle(listener_id, self)