Ignore:
Timestamp:
Jul 27, 2017 12:13:00 PM (7 years ago)
Author:
lewis
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
0615d54
Parents:
9d786e5
Message:

Raise DefaultReaderException? in NXcanSAS reader and handle correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/readers/cansas_reader.py

    r0b79323 r8dec7e7  
    108108 
    109109        basename, _ = os.path.splitext(os.path.basename(xml_file)) 
    110         # Raises FileContentsException - handled by superclass 
    111         self.load_file_and_schema(xml_file, schema_path) 
    112         self.current_datainfo = DataInfo() 
     110 
    113111        try: 
     112            # Raises FileContentsException 
     113            self.load_file_and_schema(xml_file, schema_path) 
     114            self.current_datainfo = DataInfo() 
    114115            # Raises FileContentsException if file doesn't meet CanSAS schema 
    115116            self.is_cansas(self.extension) 
Note: See TracChangeset for help on using the changeset viewer.