X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ffield.py;h=4d31f8fa064517795ba0354399cea18c0301381c;hb=4c4935bf825b84aeffa36234e95492fc6d2e9920;hp=ecbd9715753ce3e6fcec9d4f36dff19f288abd32;hpb=6a4dbecc89debb548aeb24d49e2a8a500c03f3e7;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/field.py b/src/bindings/python/bt2/bt2/field.py index ecbd9715..4d31f8fa 100644 --- 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) - except: + except Exception: 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) - except: + except Exception: return False def __lt__(self, other):