Changeset 7ede832 in sasview


Ignore:
Timestamp:
Dec 5, 2016 10:31:22 AM (7 years ago)
Author:
krzywon
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.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
77910cf
Parents:
1c6bad0
Message:

Consolidate all errors into one while running calcthread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/data_util/calcthread.py

    r934ce649 r7ede832  
    255255        # thread when the queue is empty and start a new thread when 
    256256        # there is more work to be done. 
     257        errors = 0 
    257258        while 1: 
    258259            self._lock.acquire() 
     
    270271                pass 
    271272            except: 
    272                 self.exception() 
     273                errors += 1 
     274        if errors > 0: 
     275            self.exception() 
    273276        self._running = False 
    274277 
Note: See TracChangeset for help on using the changeset viewer.