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/sascalc/corfunc/corfunc_calculator.py

    rff11b21 rb9d74f3  
    8080        # Only process data of the class Data1D 
    8181        if not issubclass(data.__class__, Data1D): 
    82             raise ValueError, "Data must be of the type DataLoader.Data1D" 
     82            raise ValueError("Data must be of the type DataLoader.Data1D") 
    8383 
    8484        # Prepare the data 
     
    151151            err = ("Incorrect transform type supplied, must be 'fourier'", 
    152152                " or 'hilbert'") 
    153             raise ValueError, err 
     153            raise ValueError(err) 
    154154 
    155155        self._transform_thread.queue() 
Note: See TracChangeset for help on using the changeset viewer.