From d565371cf7ecc16346a4485310a971a95415084b Mon Sep 17 00:00:00 2001 From: "Marcel R." Date: Mon, 10 Jun 2024 16:30:56 +0200 Subject: [PATCH] Typo. --- law/workflow/remote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/law/workflow/remote.py b/law/workflow/remote.py index 368e5281..2a4ef192 100644 --- a/law/workflow/remote.py +++ b/law/workflow/remote.py @@ -513,6 +513,9 @@ def _maximum_resources(cls, resources, n_parallel): # cap by the maximum number of parallel jobs, but in a way such that maximizes the sum of # all possible resources that could be claimed at any given point in time # (for evenly distributed resources across jobs, this would not be necessary) + if not resources: + return {} + if isinstance(resources, dict): resources = list(resources.values())