else branch would cause NameError: name 'portal_type' is not defined
else
NameError: name 'portal_type' is not defined
This will create a new commit in order to revert the existing changes.