Ignore:
Timestamp:
Jul 26, 2017 4: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/loader_exceptions.py

    r371b9e2 r3ece5dd  
    1010    loader.py. 
    1111    """ 
    12     def __init__(self, e): 
     12    def __init__(self, e=None): 
    1313        self.message = e 
    1414 
     
    1919    default readers only to tell Loader to try the next reader. 
    2020    """ 
    21     def __init__(self, e): 
     21    def __init__(self, e=None): 
    2222        self.message = e 
    2323 
     
    2828    This is useful for catching loader or file format issues. 
    2929    """ 
    30     def __init__(self, e): 
     30    def __init__(self, e=None): 
    3131        self.message = e 
    3232 
     
    3838    Any exceptions of this type should be put into the datainfo.errors 
    3939    """ 
    40     def __init__(self, e): 
     40    def __init__(self, e=None): 
    4141        self.message = e 
Note: See TracChangeset for help on using the changeset viewer.