Merge pull request #22 from KhasanovBI/fix_double_router_initializing

Fix double router initializing
This commit is contained in:
channelcat 2016-10-15 16:12:55 -07:00 committed by GitHub
commit aebb4c426c

View File

@ -17,7 +17,6 @@ class Sanic:
def __init__(self, name, router=None, error_handler=None):
self.name = name
self.router = router or Router()
self.router = router or Router()
self.error_handler = error_handler or Handler(self)
self.config = Config()
self.request_middleware = []