Merge pull request #27681 from rallytime/bp-25928

Back-port #25928 to 2015.5
This commit is contained in:
Colton Myers 2015-10-05 15:17:19 -06:00
commit 0b9ba911c4

View file

@ -610,7 +610,10 @@ class State(object):
mod_init function in the state module.
'''
# ensure that the module is loaded
self.states['{0}.{1}'.format(low['state'], low['fun'])] # pylint: disable=W0106
try:
self.states['{0}.{1}'.format(low['state'], low['fun'])] # pylint: disable=W0106
except KeyError:
return
minit = '{0}.mod_init'.format(low['state'])
if low['state'] not in self.mod_init:
if minit in self.states._dict: