Skip to content

Commit e14d2ce

Browse files
committed
remove multiple excepts
Signed-off-by: Yash Mehan <yashmehan@gmail.com>
1 parent 4f482f1 commit e14d2ce

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

build/accelerate_launch.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def main():
110110
# message to termination log.
111111
logging.error(traceback.format_exc())
112112
# The exit code that sft_trainer.py threw is captured in e.returncode
113-
114113
return_code = e.returncode
115114
if return_code not in [INTERNAL_ERROR_EXIT_CODE, USER_ERROR_EXIT_CODE]:
116115
return_code = INTERNAL_ERROR_EXIT_CODE
@@ -126,10 +125,6 @@ def main():
126125
sys.exit(USER_ERROR_EXIT_CODE)
127126
write_termination_log(f"Unhandled exception during training. {e}")
128127
sys.exit(INTERNAL_ERROR_EXIT_CODE)
129-
except Exception as e: # pylint: disable=broad-except
130-
logging.error(traceback.format_exc())
131-
write_termination_log(f"Unhandled exception during training. {e}")
132-
sys.exit(INTERNAL_ERROR_EXIT_CODE)
133128

134129
peft_method = job_config.get("peft_method")
135130

0 commit comments

Comments
 (0)