From d270dd22e334409513eb6a5ca3c7ec80d19eed4c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 23 Jun 2022 23:21:27 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 5 +++-- ahserver/version.py | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index 7274981..7f2aa64 100644 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -138,8 +138,9 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): self.error(f'{name}:error={e}') x = e self.info(f'{name}:time cost={t.end_time - t.begin_time}') - if x is None: - return HTTPException() + if not isinstance(x, StreamResponse): + self.error(f'x type={type(x)}error({str(x)}) happend') + return HTTPException return x async def _handle1(self,request:Request) -> StreamResponse: diff --git a/ahserver/version.py b/ahserver/version.py index b7ff4f6..ba056e6 100644 --- a/ahserver/version.py +++ b/ahserver/version.py @@ -6,3 +6,7 @@ # __version__ = '0.2.13' # use AppLogger in appPublic.app_logger to output log __version__ = '0.3.0' +# fix bug in _handle() function in processorResource.py +__version__ = '0.3.1' +# fix bug in _handle() function in processorResource.py +__version__ = '0.3.2'