code: def _cli_check_readfmt(readfmt):
      '''Checks that a file type exists and if not, raises a helpful exception'''
  
      if readfmt is None:
          return None
  
      readfmt = readfmt.lower()
      if not readfmt in curate.get_reader_formats():
          errstr = "Reader for file type '" + readfmt + "' does not exist.\n"
          errstr += "For a complete list of file types, use the 'bsecurate get-reader-formats' command"
          raise RuntimeError(errstr)
  
      return readfmf _cli_check_readfmt(readfmt):
      '''Checks that a file type exists and if not, raises a helpful exception'''
  
      if readfmt is None:
          return None
  
      readfmt = readfmt.lower()
      if not readfmt in curate.get_reader_formats():
          errstr = "Reader for file type '" + readfmt + "' does not exist.\n"
          errstr += "For a complete list of file types, use the 'bsecurate get-reader-formats' command"
          raise RuntimeError(errstr)
  
      return readfmt
docs: Checks that a file type exists and if not, raises a helpful exception