From fb18ffe6d3bb0b9473e61b9459a77e80455607a0 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 21 Jun 2019 01:49:46 +0100 Subject: [PATCH] Fix bug that prevented multiple handler checks --- houdini/handlers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/__init__.py b/houdini/handlers/__init__.py index fa44ac1..52a2529 100644 --- a/houdini/handlers/__init__.py +++ b/houdini/handlers/__init__.py @@ -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: