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
/
field.py
diff --git
a/src/bindings/python/bt2/bt2/field.py
b/src/bindings/python/bt2/bt2/field.py
index ecbd9715753ce3e6fcec9d4f36dff19f288abd32..4d31f8fa064517795ba0354399cea18c0301381c 100644
(file)
--- a/
src/bindings/python/bt2/bt2/field.py
+++ b/
src/bindings/python/bt2/bt2/field.py
@@
-141,7
+141,7
@@
class _NumericField(_Field):
def _spec_eq(self, other):
try:
return self._value == self._extract_value(other)
def _spec_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):
@@
-393,7
+393,7
@@
class _StringField(_Field):
def _spec_eq(self, other):
try:
return self._value == self._value_to_str(other)
def _spec_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.024735 seconds
and
4
git commands to generate.