예제 #1
0
def start():
    try:
        _parse_args_and_start_mining()
    except SystemExit as ex:
        raise ex
    except Exception:
        LOG.exception("Uncaught exception caused a program crash!")
        LOG.debug("Exiting...")
        sys.exit(1)
예제 #2
0
 def run(self):
     try:
         super().run()
     except Exception:
         LOG.exception("Thread %s crashed. Crashing program...", self.name)
         MiningMonitor.mark_monitor_for_exit(1)