Skip to content

Commit

Permalink
Composition: _delete_contexts: fix crash if given execution_id (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmantel authored Aug 13, 2021
1 parent beb8905 commit f87fb99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion psyneulink/core/compositions/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -9914,7 +9914,10 @@ def _delete_contexts(self, *contexts, check_simulation_storage=False, visited=No
super()._delete_contexts(*contexts, check_simulation_storage=check_simulation_storage, visited=visited)

for c in contexts:
self.scheduler._delete_counts(c.execution_id)
try:
self.scheduler._delete_counts(c.execution_id)
except AttributeError:
self.scheduler._delete_counts(c)

# ******************************************************************************************************************
# LLVM
Expand Down

0 comments on commit f87fb99

Please sign in to comment.