From db02580f4dde9ff551ebaa928858464dc10939b0 Mon Sep 17 00:00:00 2001 From: hellysmile Date: Fri, 13 Oct 2017 17:01:58 +0300 Subject: [PATCH] Added more details to TypeError regarding access_log_class. --- aiohttp/web.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aiohttp/web.py b/aiohttp/web.py index 4a9d0276e74..4b5a1de2ff6 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -237,8 +237,10 @@ def make_handler(self, *, **kwargs): if not issubclass(access_log_class, AbstractAccessLogger): - raise TypeError('access_log_class must be subclass of ' - 'aiohttp.abc.AbstractAccessLogger') + raise TypeError( + 'access_log_class must be subclass of ' + 'aiohttp.abc.AbstractAccessLogger, got {}'.format( + access_log_class)) self._set_loop(loop) self.freeze()