Isn’t the `retries += 1` missing here?