Fix bug in adds context decorator missing content
The words parameter is now passed to the set_context method as intended.pull/2577/head
parent
5caf415a15
commit
2036bbb63c
|
@ -30,7 +30,7 @@ def adds_context(context, words=''):
|
|||
@wraps(func)
|
||||
def func_wrapper(*args, **kwargs):
|
||||
ret = func(*args, **kwargs)
|
||||
args[0].set_context(context)
|
||||
args[0].set_context(context, words)
|
||||
return ret
|
||||
return func_wrapper
|
||||
return context_add_decorator
|
||||
|
|
Loading…
Reference in New Issue