diff --git a/openmc/universe.py b/openmc/universe.py index 32768c305f..a4efb5f732 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -409,10 +409,8 @@ class Universe(UniverseBase): if color_by == "cell": expected_key_type = openmc.Cell - elif color_by == "material": - expected_key_type = openmc.Material else: - raise Exception("wtf?") + expected_key_type = openmc.Material patches = [] for key, color in plot.colors.items():