A else with an exception will help debug if it could not find version_type, this could happen if the UI will be modified for example.