Ensure states_to_create variable is always set.

This commit is contained in:
Albert Cervera i Areny 2015-07-13 10:27:33 +02:00
parent b08089c016
commit a7162aa766
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ class CheckPlan(ModelSQL, ModelView):
integer_to_create = []
float_to_create = []
char_to_create = []
states_to_create = []
logging.info('Checking %s' % plan.type.internal_name)
res = getattr(plan, plan.type.internal_name)()
for result in res: