Changeset 6404 for cowsserver


Ignore:
Timestamp:
26/01/10 10:29:27 (9 years ago)
Author:
domlowe
Message:

Catch files that have broken symlinks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsserver/branches/1.2.x/lib/cowsserver/controllers/catalogue.py

    r6097 r6404  
    2323         
    2424        for fc in globalCSMLConnector.list(): 
    25             doc = globalCSMLConnector.getCsmlDoc(fc) 
     25            try: 
     26                doc = globalCSMLConnector.getCsmlDoc(fc) 
     27            except ValueError: 
     28                log.warning('could not open file %s'%fc) 
     29                continue             
    2630             
    2731            if hasattr(doc, 'name'): 
Note: See TracChangeset for help on using the changeset viewer.