remove unnecessary error checking

Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
This commit is contained in:
Gavin Ridley 2023-04-17 12:15:29 -04:00 committed by GitHub
parent 3880d1cec8
commit e4c3323601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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():