diff --git a/modpypes/client.py b/modpypes/client.py index 6b4e3f4..7f4ceb7 100644 --- a/modpypes/client.py +++ b/modpypes/client.py @@ -295,12 +295,13 @@ def main(): this_controller = SieveClientController() if _debug: _log.debug(" - this_controller: %r", this_controller) - this_console = ConsoleClient(this_controller) - if _debug: _log.debug(" - this_console: %r", this_console) - # local IO functions bind(this_controller, ModbusClient()) + # if this is being run, then a console is handy + this_console = ConsoleClient(this_controller) + if _debug: _log.debug(" - this_console: %r", this_console) + _log.debug("running") run()