Converted a leftover old-style click callback.
This commit is contained in:
parent
01450efc25
commit
66ef55ce0a
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ def script_info_option(*args, **kwargs):
|
||||||
raise TypeError('script_info_key not provided.')
|
raise TypeError('script_info_key not provided.')
|
||||||
|
|
||||||
real_callback = kwargs.get('callback')
|
real_callback = kwargs.get('callback')
|
||||||
def callback(ctx, value):
|
def callback(ctx, param, value):
|
||||||
if real_callback is not None:
|
if real_callback is not None:
|
||||||
value = real_callback(ctx, value)
|
value = real_callback(ctx, value)
|
||||||
ctx.ensure_object(ScriptInfo).data[key] = value
|
ctx.ensure_object(ScriptInfo).data[key] = value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue