From 2eacf23159264392c5d41fd2d456b0251c048a3d Mon Sep 17 00:00:00 2001 From: nsheff Date: Mon, 14 Aug 2023 20:37:33 -0400 Subject: [PATCH] Respond correctly when samples is none --- peppy/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peppy/project.py b/peppy/project.py index 27c5e054..05db0e45 100644 --- a/peppy/project.py +++ b/peppy/project.py @@ -1105,7 +1105,7 @@ def samples(self): :return Iterable[Sample]: Sample instance for each of this Project's samples """ - if self._samples: + if self._samples is not None: return self._samples if SAMPLE_DF_KEY not in self or self[SAMPLE_DF_KEY] is None: _LOGGER.debug("No samples are defined")