From 7a5d32dec0251e5b8ec576bf0b28bff38393e9b4 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 23 May 2023 12:10:29 +0200 Subject: [PATCH] fixed bug that caused TypeError: '<=' not supported between instances of 'NoneType' and 'int' work related to Bug 3315 - make simpaweb django app a packageable application --- cocluto/ClusterController/Job.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocluto/ClusterController/Job.py b/cocluto/ClusterController/Job.py index fa69d70..ae2b27a 100644 --- a/cocluto/ClusterController/Job.py +++ b/cocluto/ClusterController/Job.py @@ -29,7 +29,8 @@ class JobId: """ MAX_NUM_JOBS_IN_ARRAY = 1000000 def __init__( self, iJobId, iJobArrayElementId = None): - assert iJobArrayElementId <= self.MAX_NUM_JOBS_IN_ARRAY + if iJobArrayElementId is not None: + assert iJobArrayElementId <= self.MAX_NUM_JOBS_IN_ARRAY self.m_iJobId = iJobId self.m_iJobArrayElementId = iJobArrayElementId # None if this identifier does not refer to a job array element