From 54452c4015aca0d49ee588fd44b67f7b369c8053 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 17 Apr 2018 15:26:38 +0100 Subject: [PATCH] service: fix UnboundLocalError. --- mitogen/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/service.py b/mitogen/service.py index d392fd1f..23848b24 100644 --- a/mitogen/service.py +++ b/mitogen/service.py @@ -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)