diff --git a/openmc/surface.py b/openmc/surface.py index 70fd008318..b2f3c6710c 100644 --- a/openmc/surface.py +++ b/openmc/surface.py @@ -454,8 +454,8 @@ class Surface(IDManagerMixin, ABC): """ # If this is a DAGMC surface, do nothing for now - geom_type = group['geom_type'][()].decode() - if geom_type == 'dagmc': + geom_type = group.get('geom_type') + if geom_type and geom_type[()].decode() == 'dagmc': return surface_id = int(group.name.split('/')[-1].lstrip('surface '))