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