lib: rename INVALID_OBJECT status to UNKNOWN_OBJECT
[babeltrace.git] / src / bindings / python / bt2 / bt2 / utils.py
index a3df357ee47d2184cb82d7a8d070f154c4583250..77ebe606057aeec6d203df13c1f9af491bf2e8d5 100644 (file)
@@ -156,11 +156,11 @@ def _handle_func_status(status, msg=None):
             raise bt2._OverflowError
         else:
             raise bt2._OverflowError(msg)
-    elif status == native_bt.__BT_FUNC_STATUS_INVALID_OBJECT:
+    elif status == native_bt.__BT_FUNC_STATUS_UNKNOWN_OBJECT:
         if msg is None:
-            raise bt2.InvalidObject
+            raise bt2.UnknownObject
         else:
-            raise bt2.InvalidObject(msg)
+            raise bt2.UnknownObject(msg)
     else:
         assert False
 
This page took 0.024105 seconds and 4 git commands to generate.