Skip to content

Commit a2ab830

Browse files
committed
Add comment to explain exception
1 parent 401acaf commit a2ab830

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/axelrod_fortran/player.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ def strategy(self, opponent):
114114
return actions[original_action]
115115

116116
def _release_shared_library(self):
117+
# While this looks like we're checking that the shared library file
118+
# isn't deleted, the exception is actually thrown in the manager
119+
# thread closes before the player class is garbage collected, which
120+
# tends to happen at the end of a script.
117121
try:
118122
shared_library_manager.release(self.original_name, self.index)
119123
except FileNotFoundError:

0 commit comments

Comments
 (0)