~sergiodj/debian_kitchen

a4a696f4dafa6b13c3898d01acafcf958956eb1f — Simon Chopin 11 years ago 7e18b88
Make kitchen.text.converters.exception_to_* not swallow

 general errors such as KeyboardInterrupt
Bug: https://fedorahosted.org/kitchen/ticket/9

Patch-Name: explicit_Exception_catching
1 files changed, 2 insertions(+), 2 deletions(-)

M kitchen2/kitchen/text/converters.py
M kitchen2/kitchen/text/converters.py => kitchen2/kitchen/text/converters.py +2 -2
@@ 499,7 499,7 @@ def exception_to_unicode(exc, converters=EXCEPTION_CONVERTERS):
    for func in converters:
        try:
            msg = func(exc)
        except:
        except Exception:
            pass
        else:
            break


@@ 531,7 531,7 @@ def exception_to_bytes(exc, converters=EXCEPTION_CONVERTERS):
    for func in converters:
        try:
            msg = func(exc)
        except:
        except Exception:
            pass
        else:
            break