Skip to content

Commit

Permalink
fixed FunctionCollection.remove
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Jul 20, 2019
1 parent 590695d commit 8beeca4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atasker/f.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def remove(self, f):
"""
try:
self._functions.remove(f)
for z in self._functions_with_priorities:
if z['f'] is f:
self._functions_with_priorities.remove(z)
break
except Exception as e:
self.error(e)

Expand Down

0 comments on commit 8beeca4

Please sign in to comment.