bt2: require msg for _OverflowError in _handle_func_status
[babeltrace.git] / src / bindings / python / bt2 / bt2 / utils.py
index c8fb517152d2107a64bd90ae3a9125a1293ab8c8..fc6d24ce79d8b9c4915238b87ed3f7205c97b63f 100644 (file)
@@ -156,10 +156,7 @@ def _handle_func_status(status, msg=None):
         else:
             raise TryAgain(msg)
     elif status == native_bt.__BT_FUNC_STATUS_OVERFLOW_ERROR:
-        if msg is None:
-            raise _OverflowError
-        else:
-            raise _OverflowError(msg)
+        raise _OverflowError(msg)
     elif status == native_bt.__BT_FUNC_STATUS_UNKNOWN_OBJECT:
         if msg is None:
             raise UnknownObject
This page took 0.024458 seconds and 4 git commands to generate.