From 9473b7dddff2dc92bf6165f41188fde53c8f7bf5 Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Sun, 30 Mar 2014 10:16:09 -0700 Subject: [PATCH] FIX: use the correct Connection variable in exception logging Signed-off-by: Sean Robinson --- wifiradar/connections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wifiradar/connections.py b/wifiradar/connections.py index dea1a5e..5bdebce 100644 --- a/wifiradar/connections.py +++ b/wifiradar/connections.py @@ -90,7 +90,7 @@ def scanner(config_manager, msg_pipe): except (EOFError, IOError) as e: # This is bad, really bad. logger.critical('read on closed ' + - 'Pipe ({}), failing...'.format(rfd)) + 'Pipe ({}), failing...'.format(msg_pipe)) raise misc.PipeError(e) else: if msg.topic == 'EXIT': @@ -168,7 +168,7 @@ class ConnectionManager(object): except (EOFError, IOError) as e: # This is bad, really bad. logger.critical('read on closed ' + - 'Pipe ({}), failing...'.format(rfd)) + 'Pipe ({}), failing...'.format(self.msg_pipe)) self._watching.clear() raise misc.PipeError(e) else: -- 2.11.4.GIT