def handle_raw_packet(self, raw_packet):
log.debug('<STR_LIT>', raw_packet)<EOL>packet = None<EOL>try:<EOL><INDENT>packet = decode_packet(raw_packet)<EOL><DEDENT>except:<EOL><INDENT>log.exception('<STR_LIT>', packet)<EOL><DEDENT>log.debug('<STR_LIT>', packet)<EOL>if packet:<EOL><INDENT>if '<STR_LIT>' in packet:<EOL><INDENT>log.debug('<STR_LIT>', packet)<EOL>self._last_ack = packet<EOL>self._command_ack.set()<EOL><DEDENT>elif self.raw_callback:<EOL><INDENT>self.raw_callback(raw_packet)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>log.warning('<STR_LIT>')<EOL><DEDENT>
Parse raw packet string into packet dict.