'call_unsafe_for_result' -> 'call_for_result_unsafe'
This commit is contained in:
parent
bb749b111f
commit
d2a1763dc8
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
returns = []
|
returns = []
|
||||||
if requests:
|
if requests:
|
||||||
for request, request_args in requests:
|
for request, request_args in requests:
|
||||||
returns.append(event_hook.on(request).call_unsafe_for_result(
|
returns.append(event_hook.on(request).call_for_result_unsafe(
|
||||||
**kwargs, request_args=request_args))
|
**kwargs, request_args=request_args))
|
||||||
else:
|
else:
|
||||||
returns = event_hook.call_unsafe(**kwargs)
|
returns = event_hook.call_unsafe(**kwargs)
|
||||||
|
|
|
@ -73,7 +73,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||||
try:
|
try:
|
||||||
event_response = _bot.trigger(lambda:
|
event_response = _bot.trigger(lambda:
|
||||||
_events.on("api").on(method).on(
|
_events.on("api").on(method).on(
|
||||||
endpoint).call_unsafe_for_result(params=params,
|
endpoint).call_for_result_unsafe(params=params,
|
||||||
path=args, data=data, headers=headers))
|
path=args, data=data, headers=headers))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
_log.error("failed to call API endpoint \"%s\"",
|
_log.error("failed to call API endpoint \"%s\"",
|
||||||
|
|
Loading…
Reference in a new issue