diff --git a/erlastic/codec.py b/erlastic/codec.py index 3a284fe..c23c68c 100644 --- a/erlastic/codec.py +++ b/erlastic/codec.py @@ -20,7 +20,7 @@ def __init__(self): v = getattr(self, k) if callable(v) and k.startswith('decode_'): try: self.decoders[int(k.split('_')[1])] = v - except: pass + except Exception: pass def decode(self, buf, offset=0): version = buf[offset]