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())
|
||||
|
||||
processes = []
|
||||
for w in range(workers):
|
||||
for _ in range(workers):
|
||||
process = Process(target=serve, kwargs=server_settings)
|
||||
process.start()
|
||||
processes.append(process)
|
||||
|
|
|
@ -216,7 +216,7 @@ def serve(host, port, request_handler, before_start=None, after_start=None,
|
|||
|
||||
try:
|
||||
http_server = loop.run_until_complete(server_coroutine)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
log.exception("Unable to start server")
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user