Merge pull request #103 from pcdinh/master

Made Pylint happy: clean up some unused variables
This commit is contained in:
Channel Cat 2016-10-24 01:22:06 -07:00 committed by GitHub
commit bb1cb29edd
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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