This commit is contained in:
yumoqing 2022-06-23 23:21:27 +08:00
parent 51b55ef830
commit d270dd22e3
2 changed files with 7 additions and 2 deletions

View File

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

View File

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