Merge "Correct castellan reraising of exception"

This commit is contained in:
Jenkins 2016-10-12 11:35:45 +00:00 committed by Gerrit Code Review
commit 3dab2cc7ee

View File

@ -43,9 +43,9 @@ class CastellanException(Exception):
message_arg = self.message message_arg = self.message
try: try:
self.message = message_arg % kwargs self.message = message_arg % kwargs
except Exception as e: except Exception:
if _FATAL_EXCEPTION_FORMAT_ERRORS: if _FATAL_EXCEPTION_FORMAT_ERRORS:
raise e raise
else: else:
# at least get the core message out if something happened # at least get the core message out if something happened
pass pass