ruia/spider.py
async def handle_callback(self, aws_callback: typing.Coroutine, response):
        """Process coroutine callback function"""
        callback_result = None

        try:
            callback_result = await aws_callback
        except NothingMatchedError as e:
            self.logger.error(f'<Item: {str(e).lower()}>')
        except Exception as e:
            self.logger.error(f'<Callback[{aws_callback.__name__}]: {e}')
        return callback_result, response
async def handle_callback(self, aws_callback: typing.Coroutine, response):
        callback_result = None

        try:
            callback_result = await aws_callback
        except NothingMatchedError as e:
            self.logger.error(f'<Item: {str(e).lower()}>')
        except Exception as e:
            self.logger.error(f'<Callback[{aws_callback.__name__}]: {e}')
        return callback_result, response
async def handle_callback ( self , aws_callback : typing . Coroutine , response ) : callback_result = None try : callback_result = await aws_callback except NothingMatchedError as e : self . logger . error ( f'<Item: {str(e).lower()}>' ) except Exception as e : self . logger . error ( f'<Callback[{aws_callback.__name__}]: {e}' ) return callback_result , response
Process coroutine callback function
Process coroutine callback function