X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fgraph.py;h=23467468595e49c564c03560979c375c2884b5aa;hb=4acc866e829881299a13d0aa8e28b93807549975;hp=870ddb381956406c6e79b878c8baa8db178f2e22;hpb=ce4923b0c7a2de36eba95725334d251e9aa08aad;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/graph.py b/src/bindings/python/bt2/bt2/graph.py index 870ddb38..23467468 100644 --- a/src/bindings/python/bt2/bt2/graph.py +++ b/src/bindings/python/bt2/bt2/graph.py @@ -73,7 +73,7 @@ class Graph(object._SharedObject): ptr = native_bt.graph_create() if ptr is None: - raise bt2.CreationError('cannot create graph object') + raise bt2.MemoryError('cannot create graph object') super().__init__(ptr) @@ -196,6 +196,6 @@ class Graph(object._SharedObject): ) if msg_iter_ptr is None: - raise bt2.CreationError('cannot create output port message iterator') + raise bt2.MemoryError('cannot create output port message iterator') return bt2.message_iterator._OutputPortMessageIterator(msg_iter_ptr)