Changeset 4245594 in sasview for DataLoader


Ignore:
Timestamp:
Aug 13, 2008 8:40:32 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8176aad
Parents:
985c88b
Message:

loader cathing all exception

Location:
DataLoader
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/loader.py

    r16d8e5f r4245594  
    207207                try: 
    208208                    readers = self.lookup(path) 
    209                 except ValueError,msg: 
    210                     raise ValueError,str(msg) 
     209                except : 
     210                    raise  
    211211            else: 
    212212                readers = self.readers[format] 
     
    216216                        value=fn.read(path) 
    217217                        return value 
    218                     except ValueError,msg: 
     218                    except msg: 
    219219                        logging.error(str(msg)) 
    220220            else: 
  • DataLoader/test/test_log.txt

    r8bd8ea4 r4245594  
    1 2008-07-28 14:22:51,773 DEBUG Inside testLoad module 
    2 2008-07-28 14:22:52,273 ERROR ascii_reader: could not load file 
    3 2008-07-28 14:22:52,273 ERROR ascii_reader: could not load file 
    4 2008-07-28 14:22:52,509 INFO IgorReader reading MAR07232_rest.ASC 
    5 2008-07-28 14:22:52,509 ERROR IgorReader: can't read this file, missing distance 
    6 2008-07-28 14:22:52,509 ERROR IgorReader: can't read this file, missing distance 
    7 2008-07-28 14:22:52,648 INFO Danse_reader Reading MP_New.sans  
    8  
    9 2008-07-28 14:22:52,773 INFO Danse_reader Reading P_New.sans  
    10  
    11 2008-07-28 14:22:52,789 WARNING Unknown file type '.missing' 
    12 2008-07-28 14:22:52,789 WARNING Unknown file type '.missing' 
    13 2008-07-28 14:22:52,789 ERROR ascii_reader: could not load file 
    14 2008-07-28 14:22:52,789 ERROR ascii_reader: could not load file 
Note: See TracChangeset for help on using the changeset viewer.