Changeset 960


Ignore:
Timestamp:
Feb 25, 2005, 4:21:32 PM (20 years ago)
Author:
duncan
Message:

added an error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pmesh/load_mesh/loadASCII.py

    r935 r960  
    725725            msg = 'Could not open file %s ' %ofile
    726726            raise IOError, msg
    727 
    728     if ofile[-4:]== ".pts":
     727       
     728    elif ofile[-4:]== ".pts":
    729729        try:
    730730            points_dict = read_pts(ofile)       
     
    732732            msg = 'Could not open file %s ' %ofile
    733733            raise IOError, msg
     734    else:     
     735        msg = 'Extension %s is unknown' %ofile[-4:]
     736        raise IOError, msg
     737       
     738   
    734739       
    735740    return points_dict
Note: See TracChangeset for help on using the changeset viewer.