aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/foregrounds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/foregrounds.py b/fg21sim/foregrounds.py
index 45faa52..4451725 100644
--- a/fg21sim/foregrounds.py
+++ b/fg21sim/foregrounds.py
@@ -104,7 +104,7 @@ class Foregrounds:
comp_obj = comp_cls(self.configs)
comp_obj.preprocess()
skyfiles = comp_obj.simulate()
- if self.products:
+ if self.products and skyfiles:
self.products.add_component(compID, skyfiles)
comp_obj.postprocess()