diff --git a/kitchen/text/converters.py b/kitchen/text/converters.py index 0eb57b4..a89d092 100644 --- a/kitchen/text/converters.py +++ b/kitchen/text/converters.py @@ -500,7 +500,7 @@ def exception_to_unicode(exc, converters=EXCEPTION_CONVERTERS): for func in converters: try: msg = func(exc) - except: + except Exception: pass else: break @@ -532,7 +532,7 @@ def exception_to_bytes(exc, converters=EXCEPTION_CONVERTERS): for func in converters: try: msg = func(exc) - except: + except Exception: pass else: break