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/plottools/LineModel.py

    r959eb01 rb9d74f3  
    8282        elif x.__class__.__name__ == 'tuple': 
    8383            msg = "Tuples are not allowed as input to BaseComponent models" 
    84             raise ValueError, msg 
     84            raise ValueError(msg) 
    8585        else: 
    8686            return self._line(x) 
     
    104104        elif x.__class__.__name__ == 'tuple': 
    105105            msg = "Tuples are not allowed as input to BaseComponent models" 
    106             raise ValueError, msg 
     106            raise ValueError(msg) 
    107107        else: 
    108108            return self._line(x) 
Note: See TracChangeset for help on using the changeset viewer.