Merge pull request #103 from pcdinh/master
Made Pylint happy: clean up some unused variables
This commit is contained in:
commit
bb1cb29edd
@ -296,7 +296,7 @@ class Sanic:
|
|||||||
signal(SIGTERM, lambda s, f: stop_event.set())
|
signal(SIGTERM, lambda s, f: stop_event.set())
|
||||||
|
|
||||||
processes = []
|
processes = []
|
||||||
for w in range(workers):
|
for _ in range(workers):
|
||||||
process = Process(target=serve, kwargs=server_settings)
|
process = Process(target=serve, kwargs=server_settings)
|
||||||
process.start()
|
process.start()
|
||||||
processes.append(process)
|
processes.append(process)
|
||||||
|
@ -216,7 +216,7 @@ def serve(host, port, request_handler, before_start=None, after_start=None,
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
http_server = loop.run_until_complete(server_coroutine)
|
http_server = loop.run_until_complete(server_coroutine)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
log.exception("Unable to start server")
|
log.exception("Unable to start server")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user