X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fgraph.py;h=f1270b5a66a8582bac4c2432327abc792210a4cd;hp=849b208a10e58dfa5e96611b12942837aa0cf6d3;hb=c594ab036e1797da45594dce8dfc07d90f2bb81f;hpb=3c8252a5b96d617770863d3f54398b58d4c3315a diff --git a/src/bindings/python/bt2/bt2/graph.py b/src/bindings/python/bt2/bt2/graph.py index 849b208a..f1270b5a 100644 --- a/src/bindings/python/bt2/bt2/graph.py +++ b/src/bindings/python/bt2/bt2/graph.py @@ -66,9 +66,7 @@ class Graph(object._SharedObject): super().__init__(ptr) def _handle_status(self, status, gen_error_msg): - if status == native_bt.GRAPH_STATUS_COMPONENT_REFUSES_PORT_CONNECTION: - raise bt2.PortConnectionRefused - elif status == native_bt.GRAPH_STATUS_CANCELED: + if status == native_bt.GRAPH_STATUS_CANCELED: raise bt2.GraphCanceled elif status == native_bt.GRAPH_STATUS_END: raise bt2.Stop