diff --git a/modules/preprocessing.py b/modules/preprocessing.py
index b331775d219b38ee60437f919d808a6734aa6b3f..d49c7bff5e53ed1f617743ecb3b332012083b916 100644
--- a/modules/preprocessing.py
+++ b/modules/preprocessing.py
@@ -53,7 +53,7 @@ def _add_extra_arguments(definitions, flags):
 def _add_flavors(definitions):
     """Change flavor attribute to cpus and memory."""
     for host in definitions["hosts"]:
-        if "flavor" in host:
+        if "flavor" in host and host["flavor"]:
             if host["flavor"] not in FLAVORS:
                 print("Error: Not supported flavor: " + host["flavor"])
                 raise AttributeError