mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixed a kwarg call where Tickerhandler assumed too much about the hook method.
This commit is contained in:
parent
b7872f2d6f
commit
554b55c9ec
1 changed files with 4 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class Ticker(object):
|
|||
appropriately.
|
||||
"""
|
||||
for store_key, (obj, args, kwargs) in self.subscriptions.items():
|
||||
hook_key = yield kwargs.get("_hook_key", "at_tick")
|
||||
hook_key = yield kwargs.pop("_hook_key", "at_tick")
|
||||
if not obj or not obj.pk:
|
||||
# object was deleted between calls
|
||||
self.remove(store_key)
|
||||
|
|
@ -104,6 +104,9 @@ class Ticker(object):
|
|||
self.remove(store_key)
|
||||
except Exception:
|
||||
log_trace()
|
||||
finally:
|
||||
# make sure to re-store
|
||||
kwargs["_hook_key"] = hook_key
|
||||
|
||||
def __init__(self, interval):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue