code: def _fetch_secret(pass_path):
      '''
      Fetch secret from pass based on pass_path. If there is
      any error, return back the original pass_path value
      '''
      cmd = "pass show {0}".format(pass_path.strip())
      log.debug('Fetching secret: %s', cmd)
  
      proc = Popen(cmd.split(' '), stdout=PIPE, stderr=PIPE)
      pass_data, pass_error = proc.communicate()
  
      # The version of pass used during development sent output to
      # stdout instead of stderr even though its returncode was non zero.
      if proc.returncode or not pass_data:
          log.warning('Could not fetch secret: %s %s', pass_data, pass_error)
          pass_data = pass_path
      return pass_data.strip(f _fetch_secret(pass_path):
      '''
      Fetch secret from pass based on pass_path. If there is
      any error, return back the original pass_path value
      '''
      cmd = "pass show {0}".format(pass_path.strip())
      log.debug('Fetching secret: %s', cmd)
  
      proc = Popen(cmd.split(' '), stdout=PIPE, stderr=PIPE)
      pass_data, pass_error = proc.communicate()
  
      # The version of pass used during development sent output to
      # stdout instead of stderr even though its returncode was non zero.
      if proc.returncode or not pass_data:
          log.warning('Could not fetch secret: %s %s', pass_data, pass_error)
          pass_data = pass_path
      return pass_data.strip()
docs: Fetch secret from pass based on pass_path. If there is
      any error, return back the original pass_path value