changeset 126:e5cba2622d26

Check we don't give null values to the processing pipeline.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 14 Nov 2014 22:46:16 +0100
parents c77062233ba5
children bc63dc20baa0
files piecrust/processing/base.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/processing/base.py	Fri Nov 14 22:45:12 2014 +0100
+++ b/piecrust/processing/base.py	Fri Nov 14 22:46:16 2014 +0100
@@ -109,6 +109,7 @@
 class ProcessorPipeline(object):
     def __init__(self, app, mounts, out_dir, force=False,
             skip_patterns=None, force_patterns=None, num_workers=4):
+        assert app and out_dir
         self.app = app
         self.mounts = mounts
         tmp_dir = app.cache_dir