Ignore:
Timestamp:
Oct 11, 2018 12:20:56 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
Children:
98b9f32
Parents:
67ed543
Message:

improved support for py37 in sasgui

File:
1 edited

Legend:

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

    rac07a3a r5251ec6  
    4141            # Thread was interrupted, just proceed 
    4242            pass 
    43         except: 
     43        except Exception as exc: 
    4444            if self.error_func is not None: 
    45                 self.error_func("CalcPr.compute: %s" % sys.exc_value) 
     45                self.error_func("CalcPr.compute: %s" % exc) 
    4646 
    4747class EstimatePr(CalcThread): 
     
    6969            # Thread was interrupted, just proceed 
    7070            pass 
    71         except: 
     71        except Exception as exc: 
    7272            if self.error_func is not None: 
    73                 self.error_func("EstimatePr.compute: %s" % sys.exc_value) 
     73                self.error_func("EstimatePr.compute: %s" % exc) 
    7474 
    7575class EstimateNT(CalcThread): 
     
    109109            # Thread was interrupted, just proceed 
    110110            pass 
    111         except: 
     111        except Exception as exc: 
    112112            if self.error_func is not None: 
    113                 self.error_func("EstimatePr2.compute: %s" % sys.exc_value) 
     113                self.error_func("EstimatePr2.compute: %s" % exc) 
Note: See TracChangeset for help on using the changeset viewer.