From cc787830f3b869cbd6aa5118b3b0a5caae0c9da3 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 2 Dec 2020 16:25:19 -0600 Subject: [PATCH] Fix missing variable in tallies.py (thanks to @jlanversin). Closes #1727 --- openmc/tallies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/tallies.py b/openmc/tallies.py index 646482ede9..048bd99513 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -354,7 +354,7 @@ class Tally(IDManagerMixin): if nuc in visited_nuclides: msg = 'Unable to add a duplicate nuclide "{}" to Tally ID="{}" ' \ 'since duplicate nuclides are not supported in the OpenMC ' \ - 'Python API'.format(nuclide, self.id) + 'Python API'.format(nuc, self.id) raise ValueError(msg) visited_nuclides.add(nuc)