I wasn't sure why that mattered, but I found this explanation pretty
good:
https://help.semmle.com/wiki/pages/viewpage.action?pageId=
29394005
In short, we don't want to catch KeyboardInterrupt and SystemExit.
Change-Id: I0ee20f45ac715a0477c867960cfaea511518171f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reported-by: flake8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1980
Tested-by: jenkins <jenkins@lttng.org>
try:
return issubclass(comp_cls, bt2_component._UserSourceComponent)
- except:
+ except Exception:
return False
try:
return issubclass(comp_cls, bt2_component._UserFilterComponent)
- except:
+ except Exception:
return False
try:
return issubclass(comp_cls, bt2_component._UserSinkComponent)
- except:
+ except Exception:
return False
def _spec_eq(self, other):
try:
return self._value == self._extract_value(other)
- except:
+ except Exception:
return False
def __rmod__(self, other):
def _spec_eq(self, other):
try:
return self._value == self._value_to_str(other)
- except:
+ except Exception:
return False
def __lt__(self, other):
msg = next(self)
except StopIteration:
raise bt2.Stop
- except:
+ except Exception:
raise
utils._check_type(msg, bt2_message._Message)
def __eq__(self, other):
try:
return self._value == self._extract_value(other)
- except:
+ except Exception:
return False
def __rmod__(self, other):
def __eq__(self, other):
try:
return self._value == self._value_to_str(other)
- except:
+ except Exception:
return False
def __lt__(self, other):