Source

bx-python / lib / bx / gene_reader.py

Diff from to

File lib/bx/gene_reader.py

     known_formats = ( 'gff', 'gtf', 'bed')
     if format not in known_formats: 
         print >>sys.stderr,  '%s format not in %s' % (format, ",".join( known_formats ))
-        raise '?'
-    
+        raise Exception('?')
+
     if format == 'bed':
         for line in fh:    
             f = line.strip().split()
     known_formats = ( 'gff', 'gtf', 'bed')
     if format not in known_formats: 
         print >>sys.stderr,  '%s format not in %s' % (format, ",".join( known_formats ))
-        raise '?'
-    
+        raise Exception('?')
+
     if format == 'bed':
         for line in fh:    
             f = line.strip().split()
     known_formats = ( 'gff', 'gtf', 'bed')
     if format not in known_formats: 
         print >>sys.stderr,  '%s format not in %s' % (format, ",".join( known_formats ))
-        raise '?'
-    
+        raise Exception('?')
+
     if format == 'bed':
         for line in fh:    
             f = line.strip().split()