projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: require msg for _OverflowError in _handle_func_status
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
utils.py
diff --git
a/src/bindings/python/bt2/bt2/utils.py
b/src/bindings/python/bt2/bt2/utils.py
index c8fb517152d2107a64bd90ae3a9125a1293ab8c8..fc6d24ce79d8b9c4915238b87ed3f7205c97b63f 100644
(file)
--- a/
src/bindings/python/bt2/bt2/utils.py
+++ b/
src/bindings/python/bt2/bt2/utils.py
@@
-156,10
+156,7
@@
def _handle_func_status(status, msg=None):
else:
raise TryAgain(msg)
elif status == native_bt.__BT_FUNC_STATUS_OVERFLOW_ERROR:
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
elif status == native_bt.__BT_FUNC_STATUS_UNKNOWN_OBJECT:
if msg is None:
raise UnknownObject
This page took
0.025342 seconds
and
4
git commands to generate.