Skip to content

Commit 91db4fc

Browse files
committed
fix case if we don't have successful derivations
Signed-off-by: magic_rb <[email protected]>
1 parent f7175ee commit 91db4fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buildbot_nix/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ def get_failed_dependents(
375375
def get_all_derivations(
376376
self, log: Log
377377
) -> Generator[Any, Any, dict[str, NixDerivation]]:
378+
if self.successful_jobs == []:
379+
return {}
378380
log.addStdout("getting derivation infos\n")
379381
cmd = yield self.makeRemoteShellCommand(
380382
stdioLogName=None,

0 commit comments

Comments
 (0)