Source

bx-python / lib / bx / align / maf.py

Diff from to

lib/bx/align/maf.py

         self.maf_kwargs = kwargs
         # Read and verify maf header, store any attributes
         fields = self.file.readline().split()
-        if fields[0] != '##maf': raise "File does not have MAF header"
+        if fields[0] != '##maf': raise Exception("File does not have MAF header")
         self.attributes = parse_attributes( fields[1:] )
 
     def next( self ):
     line = readline( file, skip_blank=True )
     if not line: return None
     fields = line.split() 
-    if fields[0] != 'a': raise "Expected 'a ...' line"
+    if fields[0] != 'a': raise Exception("Expected 'a ...' line")
     alignment.attributes = parse_attributes( fields[1:] )
     if 'score' in alignment.attributes:
         alignment.score = alignment.attributes['score']