X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fgraph.py;h=ce861028f9388988457e9d2be96f8df95ba58144;hb=1d9157896dc759fcf7da3803523cf32a2400f1c0;hp=56148395deafdea4d657896a7605f586febdf83a;hpb=4fef099a85fb9ec09a182180fe31d935fcdc5dae;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/graph.py b/bindings/python/bt2/bt2/graph.py index 56148395..ce861028 100644 --- a/bindings/python/bt2/bt2/graph.py +++ b/bindings/python/bt2/bt2/graph.py @@ -106,6 +106,8 @@ class Graph(object._Object): raise bt2.TryAgain elif status == native_bt.GRAPH_STATUS_NO_SINK: raise bt2.NoSinkComponent + elif status == native_bt.GRAPH_STATUS_CANNOT_CONSUME: + raise bt2.CannotConsumeGraph elif status < 0: raise bt2.Error(gen_error_msg)