projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: fix all "do not use bare 'except'" warnings
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
value.py
diff --git
a/src/bindings/python/bt2/bt2/value.py
b/src/bindings/python/bt2/bt2/value.py
index 3acabe7998ca5eddd6fb788b20c93216c39ff9a1..3001502abb472600a8038d1d056c19197a8c374b 100644
(file)
--- a/
src/bindings/python/bt2/bt2/value.py
+++ b/
src/bindings/python/bt2/bt2/value.py
@@
-132,7
+132,7
@@
class _NumericValue(_Value):
def __eq__(self, other):
try:
return self._value == self._extract_value(other)
def __eq__(self, other):
try:
return self._value == self._extract_value(other)
- except:
+ except
Exception
:
return False
def __rmod__(self, other):
return False
def __rmod__(self, other):
@@
-383,7
+383,7
@@
class StringValue(collections.abc.Sequence, _Value):
def __eq__(self, other):
try:
return self._value == self._value_to_str(other)
def __eq__(self, other):
try:
return self._value == self._value_to_str(other)
- except:
+ except
Exception
:
return False
def __lt__(self, other):
return False
def __lt__(self, other):
This page took
0.033692 seconds
and
4
git commands to generate.