code: def process_paper_helper(model_name, pmid, start_time_local):
      
      try:
          if not aws_available:
              rp, txt_format = process_paper(model_name, pmid)
          else:
              rp, txt_format = process_paper_aws(pmid, start_time_local)
      except:
          logger.exception('uncaught exception while processing %s', pmid)
          return None, None
  
      return rp, txt_format
docs: Wraps processing a paper by either a local or remote service
      and caches any uncaught exceptions