Improves comment

Change-Id: Idc8002e6d622435aac48304857985c0f82be3e32
This commit is contained in:
Mehdi Abaakouk 2015-12-09 11:23:52 +01:00
parent 68af439724
commit 185693a6ed
1 changed files with 3 additions and 1 deletions

View File

@ -145,7 +145,9 @@ class RPCDispatcher(object):
e.exc_info[1])
incoming.reply(failure=e.exc_info, log_failure=False)
except Exception as e:
# sys.exc_info() is deleted by LOG.exception().
# current sys.exc_info() content can be overriden
# by another exception raise by a log handler during
# LOG.exception(). So keep a copy and delete it later.
exc_info = sys.exc_info()
LOG.error(_LE('Exception during message handling: %s'), e,
exc_info=exc_info)