(self, cmd, *misc)
Send a command and get the answer as bytes

        cmd is a bytestring with the command
        *misc are arbitary bytestring needed for the command
Send a command and get the answer as bytes
Send a command and get the answer as bytes
def get_bytes(self, cmd, *misc):
        """Send a command and get the answer as bytes

        cmd is a bytestring with the command
        *misc are arbitary bytestring needed for the command

        """

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