diff options
| author | 2019-06-26 11:04:41 +0100 | |
|---|---|---|
| committer | 2019-06-26 11:04:41 +0100 | |
| commit | d2a1763dc8c30b936be6fd407c06288c61ec867d (patch) | |
| tree | 4bc40e02a1a4f12629f85b08d398922966a0e6fb /modules/rest_api.py | |
| parent | Refactor EventManager to only hold hooks on a root object (diff) | |
| signature | ||
'call_unsafe_for_result' -> 'call_for_result_unsafe'
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index 4dc742cd..a436bff3 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -73,7 +73,7 @@ class Handler(http.server.BaseHTTPRequestHandler): try: event_response = _bot.trigger(lambda: _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)) except Exception as e: _log.error("failed to call API endpoint \"%s\"", |
