def process(self):
response = None<EOL>try:<EOL><INDENT>payload = self.receive()<EOL>method, args, ref = self.parse(payload)<EOL>response = self.execute(method, args, ref)<EOL><DEDENT>except AuthenticateError as exception:<EOL><INDENT>logging.error(<EOL>'<STR_LIT>'<EOL>.format(exception), exc_info=<NUM_LIT:1>)<EOL><DEDENT>except AuthenticatorInvalidSignature as exception:<EOL><INDENT>logging.error(<EOL>'<STR_LIT>'<EOL>.format(exception), exc_info=<NUM_LIT:1>)<EOL><DEDENT>except DecodeError as exception:<EOL><INDENT>logging.error(<EOL>'<STR_LIT>'<EOL>.format(exception), exc_info=<NUM_LIT:1>)<EOL><DEDENT>except RequestParseError as exception:<EOL><INDENT>logging.error(<EOL>'<STR_LIT>'<EOL>.format(exception), exc_info=<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>logging.debug('<STR_LIT>'.format(payload))<EOL><DEDENT>if response:<EOL><INDENT>self.send(response)<EOL><DEDENT>else:<EOL><INDENT>self.send('<STR_LIT>')<EOL><DEDENT>
Receive data from socket and process request