line 330, in update
if genLayer == baseLayer: # if this layer has the same name as the baselayer its a baselayer, so store it with its event
UnboundLocalError: local variable 'baseLayer' referenced before assignment
Error on selecting a baselayer that doesn't have an event