Changeset f1ec901 in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Nov 21, 2017 3:21:57 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:
0580c77
Parents:
0261bc1
Message:

Minor updates to inversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/pr/pr_thread.py

    • Property mode changed from 100755 to 100644
    rfa81e94 rf1ec901  
    4141            # Thread was interrupted, just proceed 
    4242            pass 
    43         except: 
     43        except Exception as ex: 
    4444            if self.error_func is not None: 
    45                 self.error_func("CalcPr.compute: %s" % sys.exc_info()[1]) 
     45                self.error_func("CalcPr.compute: %s" % ex) 
    4646 
    4747class EstimatePr(CalcThread): 
     
    6969            # Thread was interrupted, just proceed 
    7070            pass 
    71         except: 
     71        except Exception as ex: 
    7272            if self.error_func is not None: 
    73                 self.error_func("EstimatePr.compute: %s" % sys.exc_info()[1]) 
     73                self.error_func("EstimatePr.compute: %s" % ex) 
    7474 
    7575class EstimateNT(CalcThread): 
     
    109109            # Thread was interrupted, just proceed 
    110110            pass 
    111         except: 
     111        except Exception as ex: 
    112112            if self.error_func is not None: 
    113                 self.error_func("EstimatePr2.compute: %s" % sys.exc_info()[1]) 
     113                self.error_func("EstimatePr2.compute: %s" % ex) 
Note: See TracChangeset for help on using the changeset viewer.