From cde7bc76b25e4e1e23a4ceec2d3dbcdf3c44f1f3 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sun, 9 Apr 2023 11:29:40 +0200 Subject: [PATCH] feat: failed evaluation doesnt create a job anymore (2) --- modules/buildbot/buildbot_nix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/buildbot/buildbot_nix.py b/modules/buildbot/buildbot_nix.py index 9708503..af2d77a 100644 --- a/modules/buildbot/buildbot_nix.py +++ b/modules/buildbot/buildbot_nix.py @@ -118,7 +118,7 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep): for line in self.observer.getStdout().split("\n"): if line != "": job = json.loads(line) - if job["error"] is not None: + if "error" in job.keys(): jobs.append(job) self.build.addStepsAfterCurrentStep( [BuildTrigger(scheduler="nix-build", name="nix-build", jobs=jobs)]