Small adjustment to promiseAttempt passing