this is a bug also in the original code: process_qa does not always return a tuple (and failure case needs a unittest). in EB it's ok because log.error is fatal, but that is not always the case.