Ignore:
Timestamp:
Jul 26, 2017 6:31:27 AM (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:
bc570f4
Parents:
371b9e2
Message:

Raise and catch correct exceptions in CanSAS XML reader

File:
1 edited

Legend:

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

    r235f514 r3ece5dd  
    7474        except etree.XMLSyntaxError as xml_error: 
    7575            logger.info(xml_error) 
     76            raise xml_error 
    7677        except Exception: 
    7778            self.xml = None 
     
    206207        Create a unique key value for any dictionary to prevent overwriting 
    207208        Recurses until a unique key value is found. 
    208          
     209 
    209210        :param dictionary: A dictionary with any number of entries 
    210211        :param name: The index of the item to be added to dictionary 
     
    222223        Create an element tree for processing from an etree element 
    223224 
    224         :param root: etree Element(s)  
     225        :param root: etree Element(s) 
    225226        """ 
    226227        return etree.ElementTree(root) 
Note: See TracChangeset for help on using the changeset viewer.