client is not a dict