From 5e05b0f30d4fa4db3cff133037a16607363de610 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Mon, 15 Feb 2016 23:58:50 -0800 Subject: [PATCH] starting to wear the belt and suspenders --- tldp/doctypes/common.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tldp/doctypes/common.py b/tldp/doctypes/common.py index e208ec7..449a9de 100644 --- a/tldp/doctypes/common.py +++ b/tldp/doctypes/common.py @@ -27,9 +27,10 @@ class SignatureChecker(object): class BaseDoctype(object): def __init__(self, *args, **kwargs): - self.source = kwargs.get('source') - self.output = kwargs.get('output') - self.platform = kwargs.get('platform') + self.source = kwargs.get('source', None) + self.output = kwargs.get('output', None) + self.platform = kwargs.get('platform', None) + assert None is not in (self.source, self.output, self.platform) self.logdir = os.path.join(self.output.dirname, 'logs') if os.path.exists(self.logdir): logger.warning("Found existing logs directory: %s", self.logdir)