diff --git a/.pylintrc b/.pylintrc index 782030d..57b6b0d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -4,6 +4,7 @@ disable=all enable=anomalous-backslash-in-string, assignment-from-no-return, + assignment-from-none, bare-except, broad-exception-caught, dangerous-default-value, diff --git a/src/wuttjamaican/batch.py b/src/wuttjamaican/batch.py index d263360..d87d70e 100644 --- a/src/wuttjamaican/batch.py +++ b/src/wuttjamaican/batch.py @@ -468,11 +468,11 @@ class BatchHandler(GenericHandler): if batch.executed: raise ValueError(f"batch has already been executed: {batch}") - reason = self.why_not_execute(batch, user=user, **kwargs) + reason = self.why_not_execute(batch, user=user, **kwargs) # pylint: disable=assignment-from-none if reason: raise RuntimeError(f"batch execution not allowed: {reason}") - result = self.execute(batch, user=user, progress=progress, **kwargs) + result = self.execute(batch, user=user, progress=progress, **kwargs) # pylint: disable=assignment-from-none batch.executed = datetime.datetime.now() batch.executed_by = user return result