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/guiframe/local_perspectives/plotting/plotting.py

    r235f514 rb9d74f3  
    199199 
    200200        msg = "1D Panel of group ID %s could not be created" % str(group_id) 
    201         raise ValueError, msg 
     201        raise ValueError(msg) 
    202202 
    203203    def create_2d_panel(self, data, group_id): 
     
    217217            return new_panel 
    218218        msg = "2D Panel of group ID %s could not be created" % str(group_id) 
    219         raise ValueError, msg 
     219        raise ValueError(msg) 
    220220 
    221221    def update_panel(self, data, panel): 
     
    237237            msg += " to panel %s\n" % str(panel.window_caption) 
    238238            msg += "Please edit %s's units, labels" % str(data.name) 
    239             raise ValueError, msg 
     239            raise ValueError(msg) 
    240240        else: 
    241241            if panel.group_id not in data.list_group_id: 
Note: See TracChangeset for help on using the changeset viewer.