diff --git a/csst_common/status.py b/csst_common/status.py index 3bb4cde7469def3244d82a14a238197d5d62d500..170807cf95f5a13ace61b0d9eb60ac0ca0040324 100644 --- a/csst_common/status.py +++ b/csst_common/status.py @@ -49,10 +49,14 @@ class CsstResult: ): if files is None: files = [] - assert isinstance(status, CsstStatus) - assert isinstance(files, list) + assert isinstance( + status, CsstStatus + ), "`status` should be a `csst_common.CsstStatus` type objects." + assert isinstance( + files, list + ), "`files` should be a list of `str` type objects." for _ in files: - assert isinstance(_, str) + assert isinstance(_, str), "`files` should be a list of `str` type objects." self.status: CsstStatus = status self.files: Optional[list] = files self.output: dict = output