Changeset 4571 for MILK


Ignore:
Timestamp:
09/12/08 11:30:15 (11 years ago)
Author:
cbyrom
Message:

Various fixes to get interface to CDML/CSML code library working correctly - and to handle any output errors. NB, adjust CSML lib to
raise exception instead of just exiting on error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/atom_editor/editatom.py

    r4563 r4571  
    167167            c.errors['WARNING'] = ['Error loading data: the displayed data will not be saved - please fix problem and retry'] 
    168168            self.__unpackErrors(e) 
     169        except SystemExit, ee: 
     170            # NB, some of the CSML libraries just sys.exit on problems - catch errors here 
     171            c.errors['ERROR'] = ['Problem encountered whilst transforming the CDML data into CSML'] 
     172            self.__unpackErrors(ee) 
    169173 
    170174        if c.atom and hasattr(c.atom, 'ndgURI'): 
     
    672676 
    673677        except Exception, e: 
    674             import pdb 
    675             pdb.set_trace() 
    676678            return self.__handleError(e) 
Note: See TracChangeset for help on using the changeset viewer.