(self, conn, cmd_misc)
Get the whole encrypted database from server
Get the whole encrypted database from server
Get the whole encrypted database from server
def get_db(self, conn, cmd_misc):
        """Get the whole encrypted database from server"""

        try:
            answer = self.send_cmd(b'GET')
            sendmsg(conn, answer)
            if answer[:4] == b'FAIL':
                raise OSError(answer.decode())
        except (OSError, TypeError) as err:
            logging.error(err.__str__())
def get_db ( self , conn , cmd_misc ) : try : answer = self . send_cmd ( b'GET' ) sendmsg ( conn , answer ) if answer [ : 4 ] == b'FAIL' : raise OSError ( answer . decode ( ) ) except ( OSError , TypeError ) as err : logging . error ( err . __str__ ( ) )