montreal_forced_aligner/abc.py
def cleanup(self) -> None:
        """
        Clean up loggers and output final message for top-level workers
        """
        try:
            if self.dirty:
                self.logger.error("There was an error in the run, please see the log.")
            else:
                self.logger.info(f"Done! Everything took {time.time() - self.start_time} seconds")
            handlers = self.logger.handlers[:]
            for handler in handlers:
                handler.close()
                self.logger.removeHandler(handler)
            self.save_worker_config()
        except (NameError, ValueError):  # already cleaned up
            pass

        Clean up loggers and output final message for top-level workers
        
Clean up loggers and output final message for top-level workers
Clean up loggers and output final message for top - level workers
def cleanup(self) -> None:
        try:
            if self.dirty:
                self.logger.error("There was an error in the run, please see the log.")
            else:
                self.logger.info(f"Done! Everything took {time.time() - self.start_time} seconds")
            handlers = self.logger.handlers[:]
            for handler in handlers:
                handler.close()
                self.logger.removeHandler(handler)
            self.save_worker_config()
        except (NameError, ValueError):  
            pass
def cleanup ( self ) -> None : try : if self . dirty : self . logger . error ( "There was an error in the run, please see the log." ) else : self . logger . info ( f"Done! Everything took {time.time() - self.start_time} seconds" ) handlers = self . logger . handlers [ : ] for handler in handlers : handler . close ( ) self . logger . removeHandler ( handler ) self . save_worker_config ( ) except ( NameError , ValueError ) : pass
Clean up loggers and output final message for top-level workers
Clean up loggers and output final message for top - level workers
"""
        Clean up loggers and output final message for top-level workers
        """ # already cleaned up
self