Ignore:
Timestamp:
Nov 20, 2017 5:55:30 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
f1ec901
Parents:
6a3e1fe
Message:

Added unit tests for recent functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r7c487846 r0261bc1  
    591591            try: 
    592592                value = GuiUtils.toDouble(item.text()) 
    593             except ValueError: 
     593            except TypeError: 
    594594                # Can't be converted properly, bring back the old value and exit 
    595595                return 
     
    606606            try: 
    607607                value = GuiUtils.toDouble(item.text()) 
    608             except ValueError: 
     608            except TypeError: 
    609609                # Can't be converted properly, bring back the old value and exit 
    610610                return 
     
    639639        try: 
    640640            value = GuiUtils.toDouble(item.text()) 
    641         except ValueError: 
     641        except TypeError: 
    642642            # Unparsable field 
    643643            return 
     
    13101310        try: 
    13111311            value = GuiUtils.toDouble(item.text()) 
    1312         except ValueError: 
     1312        except TypeError: 
    13131313            # Unparsable field 
    13141314            return 
Note: See TracChangeset for help on using the changeset viewer.