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
This commit is contained in:
parent
613271973b
commit
ed8b5f7485
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue