From 3e369f9a9f288f159f84eda1afc31a01f3305779 Mon Sep 17 00:00:00 2001 From: Samuel Anderson <119458760+AWS-Samuel@users.noreply.github.com> Date: Fri, 10 May 2024 18:40:52 -0500 Subject: [PATCH] fix: Prevent submission dialog sometimes closing on exceptions (#329) Signed-off-by: Samuel Anderson <119458760+AWS-Samuel@users.noreply.github.com> --- .../client/ui/dialogs/submit_job_to_deadline_dialog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/deadline/client/ui/dialogs/submit_job_to_deadline_dialog.py b/src/deadline/client/ui/dialogs/submit_job_to_deadline_dialog.py index f7b463a2..30b21d1d 100644 --- a/src/deadline/client/ui/dialogs/submit_job_to_deadline_dialog.py +++ b/src/deadline/client/ui/dialogs/submit_job_to_deadline_dialog.py @@ -385,6 +385,9 @@ def on_submit(self): """ Perform a submission when the submit button is pressed """ + # Unset any cached response + self.create_job_response = None + # Retrieve all the settings into the dataclass settings = self.job_settings_type() self.shared_job_settings.update_settings(settings)