Hey all, I'm running into an error using state_han...
# ask-community
c
Hey all, I'm running into an error using state_handlers in the task decorator now. Any thoughts? I'm on Prefect 0.14.20
Copy code
File "D:\venv\poetry\.venv\lib\site-packages\prefect\core\task.py", line 159, in init
    old_init(self, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'state_handers'
python-BaseException
@task(log_stdout = True, nout = 2, max_retries = 3, retry_delay = timedelta(minutes = 15), state_handers = [handler])
z
hey @chicago-joe! from the traceback it looks like a typo "state_handers" instead of "state_handlers"
c
lol. dang that is embarrassing, good catch and shame on me. Thanks for the quick support, much appreciated sir!
👍 1