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
727e0eb7f3
commit
85b7e2bd26
1 changed files with 2 additions and 2 deletions
|
@ -499,7 +499,7 @@ def exception_to_unicode(exc, converters=EXCEPTION_CONVERTERS):
|
||||||
for func in converters:
|
for func in converters:
|
||||||
try:
|
try:
|
||||||
msg = func(exc)
|
msg = func(exc)
|
||||||
except:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
@ -531,7 +531,7 @@ def exception_to_bytes(exc, converters=EXCEPTION_CONVERTERS):
|
||||||
for func in converters:
|
for func in converters:
|
||||||
try:
|
try:
|
||||||
msg = func(exc)
|
msg = func(exc)
|
||||||
except:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue