From b3f57ec4ff30a8987d3482ef4b42c8935911419a Mon Sep 17 00:00:00 2001 From: hategan Date: Thu, 1 May 2025 15:54:27 -0700 Subject: [PATCH] Setting the `project_name` in the constructor can reset the `account` attribute to `None` due to the setter. So only set if not the default. --- src/psij/job_attributes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/psij/job_attributes.py b/src/psij/job_attributes.py index 91fcd02b..d060fa30 100644 --- a/src/psij/job_attributes.py +++ b/src/psij/job_attributes.py @@ -53,7 +53,8 @@ def __init__(self, duration: timedelta = timedelta(minutes=10), self.account = account self.duration = duration self.queue_name = queue_name - self.project_name = project_name + if project_name is not None: + self.project_name = project_name self.reservation_id = reservation_id self._custom_attributes = custom_attributes