Changeset 909 for trunk/python


Ignore:
Timestamp:
03/21/06 10:17:43 (19 years ago)
Author:
vor010
Message:

RuntimeError -> ValueError

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r907 r909  
    10601060
    10611061        if not _is_valid(edge, int) and not individualEdge:
    1062             raise RuntimeError, "Parameter 'edge' has to be an integer or a \
     1062            raise ValueError, "Parameter 'edge' has to be an integer or a \
    10631063            pair of integers specified as a tuple. Nested tuples are allowed \
    10641064            to make individual selection for different IFs."
     
    10681068           for edge_par in edge:
    10691069               if not _is_valid(edge,int):
    1070                   raise RuntimeError, "Each element of the 'edge' tuple has \
     1070                  raise ValueError, "Each element of the 'edge' tuple has \
    10711071                  to be a pair of integers or an integer."
    10721072        else:
Note: See TracChangeset for help on using the changeset viewer.