From d38d427a04933af05d090d00bc80d82ab9f2a9dd Mon Sep 17 00:00:00 2001 From: Jakub Stasiak Date: Mon, 11 Apr 2016 17:08:41 +0200 Subject: [PATCH] Eliminate one blind except As far as I know it *could* happen that an exception like KeyboardInterrupt or SystemExit was caught by that blind except clause (as unlikely as it is). --- erlastic/codec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]