(self, cmd, *misc)
Send a command and get the answer decoded
Send a command and get the answer decoded
Send a command and get the answer decoded
def get_string(self, cmd, *misc):
        """Send a command and get the answer decoded"""

        try:
            answer = self.send_cmd(cmd, *misc).decode()
            if answer[:4] == b'FAIL':
                raise OSError(answer)
            return answer
        except (OSError, TypeError) as err:
            logging.error(err.__str__())
            return err.__str__()
def get_string ( self , cmd , * misc ) : try : answer = self . send_cmd ( cmd , * misc ) . decode ( ) if answer [ : 4 ] == b'FAIL' : raise OSError ( answer ) return answer except ( OSError , TypeError ) as err : logging . error ( err . __str__ ( ) ) return err . __str__ ( )