Fix for apply_routes: wrap routes in list, if it is not so (#192)

This commit is contained in:
Krukov D 2016-06-03 02:25:39 +03:00 committed by Andrew Godwin
parent 2874a0972c
commit c4f016b9c2

View File

@ -157,7 +157,8 @@ class apply_routes(object):
routes = list(map(include, self.routes))
else:
routes = self.routes
else:
routes = [self.routes]
channel_layer.routing = routes
channel_layer.router = Router(routes)