From 2630f5e0caf2e69447757f8335eba4869d8500d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kyle=20Bl=C3=B6m?= Date: Mon, 30 Jan 2017 09:49:40 -0800 Subject: [PATCH] added method parameters to docstrings --- sanic/sanic.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sanic/sanic.py b/sanic/sanic.py index 4fd4ee2d..06a78c86 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -58,6 +58,7 @@ class Sanic: :param uri: path of the URL :param methods: list or tuple of methods allowed + :param host: :return: decorated function """ @@ -105,6 +106,7 @@ class Sanic: :param uri: path of the URL :param methods: list or tuple of methods allowed, these are overridden if using a HTTPMethodView + :param host: :return: function or class instance """ # Handle HTTPMethodView differently @@ -303,6 +305,10 @@ class Sanic: :param sock: Socket for the server to accept connections from :param workers: Number of processes received before it is respected + :param loop: + :param backlog: + :param stop_event: + :param register_sys_signals: :param protocol: Subclass of asyncio protocol class :return: Nothing """ @@ -317,11 +323,9 @@ class Sanic: serve(**server_settings) else: serve_multiple(server_settings, workers, stop_event) - except Exception as e: log.exception( 'Experienced exception while trying to serve') - log.info("Server Stopped") def stop(self):