def run(self):
        """Process from queue until it is empty."""
        try:
            while not self.stopped:
                scraperobj = jobs.get(False)
                self.setName(scraperobj.getName())
                try:
                    self.getStrips(scraperobj)
                finally:
                    jobs.task_done()
                    self.setName(self.origname)
        except Empty:
            pass
        except KeyboardInterrupt:
            thread.interrupt_main()
def run ( self ) : try : while not self . stopped : scraperobj = jobs . get ( False ) self . setName ( scraperobj . getName ( ) ) try : self . getStrips ( scraperobj ) finally : jobs . task_done ( ) self . setName ( self . origname ) except Empty : pass except KeyboardInterrupt : thread . interrupt_main ( )
Process from queue until it is empty.