From db0d847cf977847e81149a907607dd4ba0f5ccf3 Mon Sep 17 00:00:00 2001 From: janssenhenning Date: Mon, 30 May 2022 17:08:58 +0200 Subject: [PATCH] Add missing return of exit code Otherwise return_results is executed twice --- aiida_fleur/workflows/hubbard1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiida_fleur/workflows/hubbard1.py b/aiida_fleur/workflows/hubbard1.py index b1912461d..d6542e61e 100644 --- a/aiida_fleur/workflows/hubbard1.py +++ b/aiida_fleur/workflows/hubbard1.py @@ -290,6 +290,7 @@ def inspect_hubbard1_calculation(self): error = ('ERROR: Hubbard1 SCF workflow was not successful') self.ctx.successful = False self.control_end_wc(error) + return self.exit_codes.ERROR_HUBBARD1_CALCULATION_FAILED try: self.ctx.hubbard1.outputs.output_scf_wc_para @@ -297,6 +298,7 @@ def inspect_hubbard1_calculation(self): error = ('ERROR: Hubbard1 SCF workflow failed, no output node') self.ctx.successful = False self.control_end_wc(error) + return self.exit_codes.ERROR_HUBBARD1_CALCULATION_FAILED def return_results(self): """