Pass correct arguments to six.reraise
six.reraise input arguments are: six.reraise(exc_type, exc_value, exc_traceback=None) This information is provided by sys.exc_info() and stored in self.communication_error. Trivial-Fix Change-Id: Ibe68d8e36ca424da61a0a9eea20e622440c79464
This commit is contained in:
parent
5abc1e2bf2
commit
3574210641
|
@ -504,7 +504,7 @@ class Daemon(object):
|
||||||
if error[1].errno == errno.EPIPE:
|
if error[1].errno == errno.EPIPE:
|
||||||
# Write stream closed, exit loop
|
# Write stream closed, exit loop
|
||||||
break
|
break
|
||||||
six.reraise(error)
|
six.reraise(*error)
|
||||||
|
|
||||||
# Submit the command for execution
|
# Submit the command for execution
|
||||||
future = self.thread_pool.submit(self._process_cmd, msgid, *msg)
|
future = self.thread_pool.submit(self._process_cmd, msgid, *msg)
|
||||||
|
|
Loading…
Reference in New Issue