From 35752b44ce16e819ec3b35a7c4a64e1637b6abf2 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 24 Jul 2019 17:07:31 -0400 Subject: [PATCH] bt2: make `bt2._OverflowError` inherit `bt2._Error` `bt2._OverflowError` represents the `__BT_FUNC_STATUS_OVERFLOW_ERROR` status code, which is an error. The library appends an error cause when returning this status, so `bt2._OverflowError` inherits `bt2._Error`. Signed-off-by: Philippe Proulx Change-Id: Iaf59bd604f595e8b57d46d7edec57b462e45416e Reviewed-on: https://review.lttng.org/c/babeltrace/+/1776 Tested-by: jenkins --- src/bindings/python/bt2/bt2/__init__.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/bt2/bt2/__init__.py.in b/src/bindings/python/bt2/bt2/__init__.py.in index 3eb51948..217366c9 100644 --- a/src/bindings/python/bt2/bt2/__init__.py.in +++ b/src/bindings/python/bt2/bt2/__init__.py.in @@ -165,7 +165,7 @@ class InvalidObject(Exception): pass -class _OverflowError(OverflowError): +class _OverflowError(_Error, OverflowError): pass -- 2.34.1