Slightly more error checking.

This commit is contained in:
Mike Auty
2017-07-20 00:49:56 +01:00
parent 03cdd91fbf
commit fbd70438a0
@@ -46,6 +46,9 @@ class LayerStacker(interfaces.automagic.AutomagicInterface):
if unsatisfied:
vollog.info("Unable to run LayerStacker, unsatisfied requirement: {}".format(unsatisfied))
return unsatisfied
if 'single_location' not in self.config:
vollog.info("Unable to run LayerStacker, single_location parameter not provided")
return []
location = self.config["single_location"]
if not location:
vollog.info("Unable to run LayerStacker, single_location parameter not provided")