hood: Fix crash when skipping Tutorial. Fixes #66

This commit is contained in:
Little Cat 2023-01-12 21:39:35 -04:00
parent 075f6857fd
commit a37dc9946e
No known key found for this signature in database
GPG key ID: 96455BD9C4399BE8

View file

@ -264,10 +264,11 @@ class QuietZoneState(StateData.StateData):
self.fsm.request('waitForSetZoneResponse')
def gotZoneRedirect(self, zoneId):
self.notify.info('Redirecting to zone %s.' % zoneId)
base.cr.handlerArgs['zoneId'] = zoneId
base.cr.handlerArgs['hoodId'] = ZoneUtil.getHoodId(zoneId)
self.fsm.request('waitForSetZoneResponse')
if hasattr(self, 'fsm'):
self.notify.info('Redirecting to zone %s.' % zoneId)
base.cr.handlerArgs['zoneId'] = zoneId
base.cr.handlerArgs['hoodId'] = ZoneUtil.getHoodId(zoneId)
self.fsm.request('waitForSetZoneResponse')
def exitWaitForZoneRedirect(self):
self.notify.debug('exitWaitForZoneRedirect()')