X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ftrace.py;fp=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ftrace.py;h=5516a986daaa00893e9f626d654686a6b28b5f9b;hb=4acc866e829881299a13d0aa8e28b93807549975;hp=86bd90d05ae1d58844e9654a2f6009fe3eb0d3b1;hpb=ce4923b0c7a2de36eba95725334d251e9aa08aad;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/trace.py b/src/bindings/python/bt2/bt2/trace.py index 86bd90d0..5516a986 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)