summaryrefslogtreecommitdiffstats
path: root/conductor
diff options
context:
space:
mode:
Diffstat (limited to 'conductor')
-rw-r--r--conductor/conductor/controller/translator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/conductor/conductor/controller/translator.py b/conductor/conductor/controller/translator.py
index dc234cd..fe92acd 100644
--- a/conductor/conductor/controller/translator.py
+++ b/conductor/conductor/controller/translator.py
@@ -297,6 +297,8 @@ class Translator(object):
def parse_demands(self, demands):
"""Validate/prepare demands for use by the solver."""
+ if not demands:
+ raise TranslatorException("demand is not provided in the template")
if type(demands) is not dict:
raise TranslatorException("Demands must be provided in "
"dictionary form")