Changeset 9968d6a in sasview for src/sas/qtgui/DensityPanel.py


Ignore:
Timestamp:
Nov 2, 2016 8:42:12 AM (8 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:
f140169
Parents:
1d85b5e
Message:

Added unit tests for the density calculator SAVIEW-247

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/DensityPanel.py

    r1d85b5e r9968d6a  
    138138            self.model.item(MODEL.MASS_DENSITY).setText(str(molarDensity)) 
    139139 
    140         except: 
     140        except (ArithmeticError, ValueError): 
    141141            self.model.item(MODEL.MASS_DENSITY).setText("") 
    142142 
     
    149149            self.model.item(MODEL.MOLAR_VOLUME).setText(str(molarVolume)) 
    150150 
    151         except: 
     151        except (ArithmeticError, ValueError): 
    152152            self.model.item(MODEL.MOLAR_VOLUME).setText("") 
    153153 
     
    167167            location = self.manager.HELP_DIRECTORY_LOCATION + \ 
    168168                "/user/sasgui/perspectives/calculator/density_calculator_help.html" 
     169 
    169170            self.manager._helpView.load(QtCore.QUrl(location)) 
    170171            self.manager._helpView.show() 
Note: See TracChangeset for help on using the changeset viewer.