projects
/
deliverable
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Python babeltrace fix: handle bt2.Error exception on stream flush
[deliverable/babeltrace.git]
/
bindings
/
python
/
babeltrace
/
babeltrace
/
writer.py
diff --git
a/bindings/python/babeltrace/babeltrace/writer.py
b/bindings/python/babeltrace/babeltrace/writer.py
index 6ee53dc65569fe4dc8c6dad044da0d08d21d92f6..61d28a5161cf1729ff729e68c0fe9f4c66c48836 100644
(file)
--- a/
bindings/python/babeltrace/babeltrace/writer.py
+++ b/
bindings/python/babeltrace/babeltrace/writer.py
@@
-1887,7
+1887,10
@@
class Stream:
:exc:`ValueError` is raised on error.
"""
- self._s.flush()
+ try:
+ self._s.flush()
+ except:
+ raise ValueError('Failed to flush CTF writer stream')
class Writer:
This page took
0.023727 seconds
and
5
git commands to generate.