mirror of
https://github.com/solero/houdini.git
synced 2024-11-09 20:58:20 +00:00
Fix bug that prevented multiple handler checks
This commit is contained in:
parent
5abc62ed1d
commit
fb18ffe6d3
@ -200,7 +200,7 @@ def cooldown(per=1.0, rate=1, bucket_type=BucketType.Default, callback=None):
|
||||
|
||||
def check(predicate):
|
||||
def decorator(handler_function):
|
||||
if not hasattr(handler_function, 'checks'):
|
||||
if not hasattr(handler_function, '__checks'):
|
||||
handler_function.__checks = []
|
||||
|
||||
if not type(predicate) == FunctionType:
|
||||
|
Loading…
Reference in New Issue
Block a user