aboutsummaryrefslogtreecommitdiff
path: root/src/Timers.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-13 09:09:24 +0100
committerGravatar jesopo2018-10-13 09:09:24 +0100
commit64cc1bf16cc7403e530308cfaf6dc7e329f63e4b (patch)
treea4ac2e166bec5fba7ddf904b70e4974818e54b42 /src/Timers.py
parent!lotterybuy should require authentication because it uses coins (diff)
signature
a Timer object can have a context yet not be a contextual timer
Diffstat (limited to 'src/Timers.py')
-rw-r--r--src/Timers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Timers.py b/src/Timers.py
index fc4ab6ba..cfcff8bd 100644
--- a/src/Timers.py
+++ b/src/Timers.py
@@ -61,7 +61,7 @@ class Timers(object):
"name": timer.name, "delay": timer.delay,
"next-due": timer.next_due, "kwargs": timer.kwargs})
def _remove(self, timer):
- if timer.context:
+ if timer.context and timer.context in self.context_timers:
self.context_timers[timer.context].remove(timer)
if not self.context_timers[timer.context]:
del self.context_timers[timer.conteext]