From e7474ccc294977d79b9d1342b3309da709a3a361 Mon Sep 17 00:00:00 2001 From: "Matthew D. Scholefield" Date: Thu, 21 Sep 2017 09:37:04 -0500 Subject: [PATCH] Fix tornado autoreload error --- mycroft/messagebus/service/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mycroft/messagebus/service/main.py b/mycroft/messagebus/service/main.py index 2a06dbddb1..75809cdf7e 100644 --- a/mycroft/messagebus/service/main.py +++ b/mycroft/messagebus/service/main.py @@ -14,8 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with Mycroft Core. If not, see . -import tornado.ioloop as ioloop -import tornado.web as web +from tornado import autoreload, web, ioloop from mycroft.configuration import ConfigurationManager from mycroft.lock import Lock # creates/supports PID locking file @@ -38,7 +37,7 @@ def main(): """ Hook to release lock when autoreload is triggered. """ lock.delete() - tornado.autoreload.add_reload_hook(reload_hook) + autoreload.add_reload_hook(reload_hook) config = ConfigurationManager.get().get("websocket")