fix 'OrderedDict' object has no attribute 'append' stack trace in _handle_iorder in case of syntax error

This commit is contained in:
regilero 2013-10-30 09:44:32 +01:00
parent b821f6a174
commit 1def8741db

View File

@ -2093,6 +2093,9 @@ class BaseHighState(object):
if arg.keys()[0] == 'order':
found = True
if not found:
if not isinstance(state[name][s_dec], list):
# quite certainly a syntax error, managed elsewhere
continue
state[name][s_dec].append(
{'order': self.iorder}
)