service.start is not a coroutine

don’t yield it
This commit is contained in:
Min RK
2016-09-22 12:03:50 +02:00
parent 24c080cf4a
commit cb35026637
2 changed files with 2 additions and 2 deletions

View File

@@ -1439,7 +1439,7 @@ class JupyterHub(Application):
for service_name, service in self._service_map.items():
try:
yield service.start()
service.start()
except Exception as e:
self.log.critical("Failed to start service %s", service_name, exc_info=True)
self.exit(1)