Source

bx-python / lib / bx / pwm / position_weight_matrix.py

Diff from to

lib/bx/pwm/position_weight_matrix.py

                     raise "Align: __init__:alignment block:row %d does not have %d columns, it has %d" % (rownum,ncol,len(row))
             except:
                 print row
-                raise ''
+                raise Exception('')
         self.ncols = ncol
         self.dims = (self.nrows,self.ncols)
         self.headers = headers
                 return degenSymbol
     else: return 'N'
     print >>sys.stderr,pattern
-    raise '?'
+    raise Exception('?')
 
 # import C extensions
 try: