service: fix UnboundLocalError.

This commit is contained in:
David Wilson 2018-04-17 15:26:38 +01:00
parent 89e11ed25c
commit 54452c4015
1 changed files with 1 additions and 1 deletions

View File

@ -185,8 +185,8 @@ class Service(object):
if response is not self.NO_REPLY:
msg.reply(response)
except mitogen.core.CallError:
LOG.warning('%r: call error: %s: %s', self, msg, e)
e = sys.exc_info()[1]
LOG.warning('%r: call error: %s: %s', self, msg, e)
msg.reply(e)
except Exception:
LOG.exception('While invoking %r.dispatch()', self)