would it be worth it to move this line into `retry_error` also?