From 14b2a84992ce2e156a78798ebf189e8fb87c6ac9 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 30 Sep 2014 17:15:24 +0000 Subject: [PATCH] async: missing slaves: add missing imports 1e0bcde13153469365dd1debf6456e4b0e048566 is missing imports into the async server, the import was only added to the sync server. Further fix for #42 Signed-off-by: Karl Palsson --- pymodbus/server/async.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pymodbus/server/async.py b/pymodbus/server/async.py index 89fac6637..b21976188 100644 --- a/pymodbus/server/async.py +++ b/pymodbus/server/async.py @@ -3,6 +3,7 @@ ------------------------------------------ ''' +import traceback from binascii import b2a_hex from twisted.internet import protocol from twisted.internet.protocol import ServerFactory @@ -13,6 +14,7 @@ from pymodbus.device import ModbusControlBlock from pymodbus.device import ModbusAccessControl from pymodbus.device import ModbusDeviceIdentification +from pymodbus.exceptions import NoSuchSlaveException from pymodbus.transaction import ModbusSocketFramer, ModbusAsciiFramer from pymodbus.pdu import ModbusExceptions as merror from pymodbus.internal.ptwisted import InstallManagementConsole