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):