From 97d0fc04b386fc5b4d8e327c53a89d90379eeb22 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 23 Jun 2022 23:31:00 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 2 +- ahserver/version.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 7f2aa64..44b7260 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -136,10 +136,10 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): x = await self._handle1(request) except Exception as e: self.error(f'{name}:error={e}') + print_exc() x = e self.info(f'{name}:time cost={t.end_time - t.begin_time}') if not isinstance(x, StreamResponse): - self.error(f'x type={type(x)}error({str(x)}) happend') return HTTPException return x diff --git a/ahserver/version.py b/ahserver/version.py index ba056e6..6b27e74 100644 --- a/ahserver/version.py +++ b/ahserver/version.py @@ -5,8 +5,10 @@ # fixed bug in restful.py delete import _WebHandler from aiohttp. web_urldispatcher # __version__ = '0.2.13' # use AppLogger in appPublic.app_logger to output log -__version__ = '0.3.0' +# __version__ = '0.3.0' # fix bug in _handle() function in processorResource.py -__version__ = '0.3.1' +# __version__ = '0.3.1' # fix bug in _handle() function in processorResource.py -__version__ = '0.3.2' +# __version__ = '0.3.2' +# fix bug in _handle() function in processorResource.py +__version__ = '0.3.3'