1. James Taylor
  2. bx-python

Source

bx-python / lib / bx / seq / nib.py

Diff from to

File lib/bx/seq/nib.py

         magic = struct.unpack(">L", file.read(NIB_MAGIC_SIZE))[0]
         if (magic != NIB_MAGIC_NUMBER):
             if magic == NIB_MAGIC_NUMBER_SWAP: self.byte_order = "<"
-            else: raise "Not a NIB file"
+            else: raise Exception("Not a NIB file")
         self.magic = magic
         self.length = struct.unpack("%sL" % self.byte_order, file.read(NIB_LENGTH_SIZE))[0]