Commit dba572cb authored by alat-rights's avatar alat-rights
Browse files

Specify KeyError exception

parent 5a395429
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -905,7 +905,7 @@ class FASTALoader(DataLoader):

    try:
      self.charset = charsets[charset]
    except:
    except KeyError:
      logger.exception("charset is invalid. Charset must be "protein", "nucleic", or "ATCGN".")
    max_length = len(self.charset)