Merge "Raise old exception instance instead of new one."

This commit is contained in:
Jenkins 2012-12-21 04:48:38 +00:00 committed by Gerrit Code Review
commit 3662704518

View File

@ -55,7 +55,7 @@ class ExceptionHelper(object):
try:
return func(*args, **kwargs)
except rpc_common.ClientException, e:
raise e._exc_info
raise (e._exc_info[1], None, e._exc_info[2])
return wrapper