Skip to content

Commit

Permalink
Removed Exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanElsaban committed Jun 3, 2024
1 parent e79457e commit 4aa6b77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tron/serialize/runstate/statemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from contextlib import contextmanager
from typing import Dict

from tron.commands.cmd_utils import ExitCode
from tron.config import schema
from tron.core import job
from tron.core import jobrun
Expand Down Expand Up @@ -167,7 +166,7 @@ def restore(self, job_names, skip_validation=False):
jobs[results[result]]["runs"] = result.result()
except Exception:
log.exception(f"Unable to restore state for {results[result]} - exiting to avoid corrupting data.")
sys.exit(ExitCode.fail)
sys.exit(1)

state = {
runstate.JOB_STATE: jobs,
Expand Down

0 comments on commit 4aa6b77

Please sign in to comment.