lib: make can_seek_beginning and can_seek_ns_from_origin methods return a status
[babeltrace.git] / src / bindings / python / bt2 / bt2 / message_iterator.py
index da9ca7474a2735daaf58c1619dd5473be3ee7400..c392d420491918ac1c35fd910d9fc3783d732144 100644 (file)
@@ -58,7 +58,11 @@ class _GenericMessageIterator(object._SharedObject, _MessageIterator):
 
     @property
     def can_seek_beginning(self):
-        res = self._can_seek_beginning(self._ptr)
+        status, res = self._can_seek_beginning(self._ptr)
+        utils._handle_func_status(
+            status,
+            'cannot check whether or not message iterator can seek its beginning',
+        )
         return res != 0
 
     def seek_beginning(self):
This page took 0.023204 seconds and 4 git commands to generate.