Ignore:
Timestamp:
Apr 20, 2017 6:29:34 AM (8 years ago)
Author:
andyfaff
Children:
0cc77d8
Parents:
b636dfc5
git-author:
Andrew Nelson <andyfaff@…> (04/20/17 06:25:57)
git-committer:
Andrew Nelson <andyfaff@…> (04/20/17 06:29:34)
Message:

MAINT: use raise Exception() not raise Exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc_state.py

    r7432acb rb9d74f3  
    284284            root, ext = os.path.splitext(basename) 
    285285            if not ext.lower() in self.ext: 
    286                 raise IOError, "{} is not a supported file type".format(ext) 
     286                raise IOError("{} is not a supported file type".format(ext)) 
    287287            tree = etree.parse(path, parser=etree.ETCompatXMLParser()) 
    288288            root = tree.getroot() 
     
    300300            # File not found 
    301301            msg = "{} is not a valid file path or doesn't exist".format(path) 
    302             raise IOError, msg 
     302            raise IOError(msg) 
    303303 
    304304        if len(output) == 0: 
     
    324324            msg = ("The CanSAS writer expects a Data1D instance. {} was " 
    325325                "provided").format(datainfo.__class__.__name__) 
    326             raise RuntimeError, msg 
     326            raise RuntimeError(msg) 
    327327        if datainfo.title is None or datainfo.title == '': 
    328328            datainfo.title = datainfo.name 
Note: See TracChangeset for help on using the changeset viewer.