def get_client(cls, client_id): client = [ client.json() for client in ClientDAOImpl.get_client(client_id) ] if not client: return "Not a valid ID" return client